uclient-http: send correct "Host:" header if port is set
authorAlexander Couzens <lynxis@fe80.eu>
Wed, 30 Nov 2016 17:49:10 +0000 (18:49 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 30 Nov 2016 18:42:31 +0000 (19:42 +0100)
commit48cfff3fbec9be3a9b7bd6e654812ad58a67d1d1
tree1157babda8d06c3d1d974468f8056d144cfc60d7
parentccb314db2e99463de15eed9d7626360d82aec4d2
uclient-http: send correct "Host:" header if port is set

When connecting to a website with a special port, uclient-fetch connects
to the correct port, but is sending an incorrect Host: header without
the corresponding port.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
uclient-http.c