Re: CVS update: php31/main

From: Date: Thu, 20 Aug 1998 15:45:28 +0000
Subject: Re: CVS update: php31/main
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-347@lists.php.net to get a copy of this message
Are we sure that this is the right thing to do? That is, does it conform with the HTTP/1.1 protocol? Zeev At 12:46 20/08/98 -0000, rasmus wrote: >Date: Thursday August 20, 1998 @ 8:46 >Author: rasmus > >Update of /repository/php31/main >In directory asf:/export/home/rasmus/php31/main > >Modified Files: > fopen-wrappers.c >Log Message: >Add port number to host header in fopen wrapper > >Index: php31/main/fopen-wrappers.c >diff -c php31/main/fopen-wrappers.c:2.2 php31/main/fopen-wrappers.c:2.3 >*** php31/main/fopen-wrappers.c:2.2 Fri Aug 14 19:57:41 1998 >--- php31/main/fopen-wrappers.c Thu Aug 20 08:46:11 1998 >*************** >*** 27,33 **** > | Jim Winstead <jimw@php.net> | > +----------------------------------------------------------------------+ > */ >! /* $Id: fopen-wrappers.c,v 2.2 1998/08/14 23:57:41 steffann Exp $ */ > > #ifdef THREAD_SAFE > #include "tls.h" >--- 27,33 ---- > | Jim Winstead <jimw@php.net> | > +----------------------------------------------------------------------+ > */ >! /* $Id: fopen-wrappers.c,v 2.3 1998/08/20 12:46:11 rasmus Exp $ */ > > #ifdef THREAD_SAFE > #include "tls.h" >*************** >*** 485,490 **** >--- 485,495 ---- > /* send a Host: header so name-based virtual hosts work */ > SOCK_WRITE("Host: ", *socketd); > SOCK_WRITE(resource->host, *socketd); >+ if(resource->port!=80) { >+ sprintf(tmp_line,"%i",resource->port); >+ SOCK_WRITE(":", *socketd); >+ SOCK_WRITE(tmp_line, *socketd); >+ } > SOCK_WRITE("\n", *socketd); > > /* identify ourselves */ > >-- >PHP Development Mailing List http://www.php.net/ >To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net >For help: php-dev-help@lists.php.net > > > -- Zeev Suraski <zeev@php.net> For a PGP public key, finger bourbon@netvision.net.il -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#347) next »