[PHP4BETA] CVS update: php4/php4isapi

From: Date: Wed, 12 May 1999 17:07:35 +0000
Subject: [PHP4BETA] CVS update: php4/php4isapi
Groups: php.version4 
Request: Send a blank email to php-version4+get-808@lists.php.net to get a copy of this message
Date: Wednesday May 12, 1999 @ 13:07 Author: zeev Update of /repository/php4/php4isapi In directory php:/tmp/cvs-serv1220/php4isapi Modified Files: php4isapi.c Log Message: Minor patches Index: php4/php4isapi/php4isapi.c diff -u php4/php4isapi/php4isapi.c:1.15 php4/php4isapi/php4isapi.c:1.16 --- php4/php4isapi/php4isapi.c:1.15 Tue May 11 16:38:17 1999 +++ php4/php4isapi/php4isapi.c Wed May 12 13:07:35 1999 @@ -159,24 +159,20 @@ *combined_headers_ptr++ = '\n'; *combined_headers_ptr = 0; - if (SG(sapi_headers).http_status_line) { - header_info.pszHeader = SG(sapi_headers).http_status_line; - } else { - switch (SG(sapi_headers).http_response_code) { - case 200: - header_info.pszStatus = "200 OK"; - break; - case 302: - header_info.pszStatus = "302 Moved Temporarily"; - break; - case 401: - header_info.pszStatus = "401 Authorization Required"; - break; - default: - snprintf(status_buf, MAX_STATUS_LENGTH, "%d Undescribed", SG(sapi_headers).http_response_code); - header_info.pszStatus = status_buf; - break; - } + switch (SG(sapi_headers).http_response_code) { + case 200: + header_info.pszStatus = "200 OK"; + break; + case 302: + header_info.pszStatus = "302 Moved Temporarily"; + break; + case 401: + header_info.pszStatus = "401 Authorization Required"; + break; + default: + snprintf(status_buf, MAX_STATUS_LENGTH, "%d Undescribed", SG(sapi_headers).http_response_code); + header_info.pszStatus = status_buf; + break; } header_info.cchStatus = strlen(header_info.pszStatus); header_info.pszHeader = combined_headers; -- PHP 4 Beta

« previous php.version4 (#808) next »