mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 19:01:07 +00:00
RFC compliance patch by Eric Lammerts <eric@lammerts.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12639 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8224d57146
commit
b770e503d1
@ -449,7 +449,10 @@ http_send_request( URL_t *url, off_t pos ) {
|
||||
server_url = url;
|
||||
http_set_uri( http_hdr, server_url->file );
|
||||
}
|
||||
snprintf(str, 256, "Host: %s", server_url->hostname );
|
||||
if (server_url->port && server_url->port != 80)
|
||||
snprintf(str, 256, "Host: %s:%d", server_url->hostname, server_url->port );
|
||||
else
|
||||
snprintf(str, 256, "Host: %s", server_url->hostname );
|
||||
http_set_field( http_hdr, str);
|
||||
if (network_useragent)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user