"Hostname" fields absent from http requests for connectivity checking

The Nextcloud android apps has some feature break. The problem coming from the connectivity checking who don’t send the hostname.
Example of HaProxy (frontend) logs :
In this config, <NOSRV> indicate a bad or absent hostname in the http request. If the server don’t know which virtualhost the user want to speak, it’s not possible, :stuck_out_tongue:.

Sep 30 18:28:36 FrontendMachine haproxy[22666]: 192.168.42.42:43681 [30/Sep/2019:18:28:36.009] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 8/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:29:01 FrontendMachine haproxy[22666]: 192.168.42.42:47003 [30/Sep/2019:18:29:01.442] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 8/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:29:02 FrontendMachine haproxy[22666]: 192.168.42.42:39120 [30/Sep/2019:18:29:02.104] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 1/-1/-1/-1/1 403 197 - - PR-- 9/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:29:02 FrontendMachine haproxy[22666]: 192.168.42.42:34332 [30/Sep/2019:18:29:02.132] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 9/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:29:21 FrontendMachine haproxy[22666]: 192.168.42.42:44188 [30/Sep/2019:18:29:21.078] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 7/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:29:22 FrontendMachine haproxy[22666]: 192.168.42.42:41739 [30/Sep/2019:18:29:22.161] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 7/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:29:47 FrontendMachine haproxy[22666]: 192.168.42.42:52800 [30/Sep/2019:18:29:47.869] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 7/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:29:48 FrontendMachine haproxy[22666]: 192.168.42.42:44679 [30/Sep/2019:18:29:48.446] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 7/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:29:52 FrontendMachine haproxy[22666]: 192.168.42.42:47619 [30/Sep/2019:18:29:52.933] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 6/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"
Sep 30 18:31:27 FrontendMachine haproxy[22666]: 192.168.42.42:46080 [30/Sep/2019:18:31:27.709] Frontend_HTTP~ Frontend_HTTP/<NOSRV> 0/-1/-1/-1/0 403 197 - - PR-- 5/3/0/0/0 0/0 "GET /index.php/204 HTTP/1.1"

Result : streaming and access to files working, but automated sending (contacts backup & images/pics) are break, when click on the pics for manuallyforce sending it, the software indicate “Connexion error” just under the title of the pics.

PS : posted on github via tmp account : https://github.com/nextcloud/android/issues/4588