CVS update: php31/main
| From: | rasmus | Date: | Thu, 20 Aug 1998 12:46:11 +0000 |
| Subject: | CVS update: php31/main | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-346@lists.php.net to get a copy of this message | ||
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