# HG changeset patch # User alex # Date 1088176467 0 # Node ID 2ebd553876c8bcaca9e57203f28871004c501c56 # Parent 5dc89722fad239a15813333cd308f0253c67386c RFC compliance patch by Eric Lammerts diff -r 5dc89722fad2 -r 2ebd553876c8 libmpdemux/network.c --- a/libmpdemux/network.c Fri Jun 25 14:57:01 2004 +0000 +++ b/libmpdemux/network.c Fri Jun 25 15:14:27 2004 +0000 @@ -449,7 +449,10 @@ 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) {