[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.101,1.102
Alex Beregszaszi
syncmail at mplayerhq.hu
Fri Jun 25 17:14:29 CEST 2004
CVS change done by Alex Beregszaszi
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv19982
Modified Files:
network.c
Log Message:
RFC compliance patch by Eric Lammerts <eric at lammerts.org>
Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -r1.101 -r1.102
--- network.c 18 Jun 2004 14:31:10 -0000 1.101
+++ network.c 25 Jun 2004 15:14:27 -0000 1.102
@@ -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)
{
More information about the MPlayer-cvslog
mailing list