aleigh Thu Jan 15 10:04:59 2004 EDT
Modified files:
/php-src/sapi/continuity capi.c
Log:
Changed to mixed-case response header codes. This is in keeping with
the changes to >= Continuity mk4 mod1.
Index: php-src/sapi/continuity/capi.c
diff -u php-src/sapi/continuity/capi.c:1.6 php-src/sapi/continuity/capi.c:1.7
--- php-src/sapi/continuity/capi.c:1.6 Thu Jan 8 03:18:10 2004
+++ php-src/sapi/continuity/capi.c Thu Jan 15 10:04:59 2004
@@ -110,7 +110,7 @@
PHP_MINFO_FUNCTION(continuity)
{
php_info_print_table_start();
- php_info_print_table_row(2, "Continuity Module Revision", "$Revision: 1.6 $");
+ php_info_print_table_row(2, "Continuity Module Revision", "$Revision: 1.7 $");
php_info_print_table_row(2, "Server Version", conFget_build());
#ifdef CONTINUITY_CDPEXT
php_info_print_table_row(2,"CDP Extensions", "enabled");
@@ -148,7 +148,7 @@
char *header_name, *header_content, *p;
capi_request_context *rc = (capi_request_context *) SG(server_context);
- lstFset_delete_key(rc->t->res_hdrs, "content-type");
+ lstFset_delete_key(rc->t->res_hdrs, "Content-Type");
header_name = sapi_header->header;
header_content = p = strchr(header_name, ':');
@@ -185,8 +185,8 @@
*/
if (SG(sapi_headers).send_default_content_type) {
- /* lstFset_delete_key(rc->t->res_hdrs, "content-type"); */
- lstFset_update(rc->t->res_hdrs, "content-type", "text/html");
+ /* lstFset_delete_key(rc->t->res_hdrs, "Content-Type"); */
+ lstFset_update(rc->t->res_hdrs, "Content-Type", "text/html");
}
httpFset_status(rc->t, SG(sapi_headers).http_response_code, NULL);
httpFstart_response(rc->t);
@@ -244,7 +244,7 @@
php_register_variable("REQUEST_URI", value, track_vars_array TSRMLS_CC);
}
-/* COUNTRY CODE */
+ /* COUNTRY CODE */
value = lstFset_get(rc->t->vars, "ccode");
if(value!=NULL)
php_register_variable("COUNTRY_CODE", value, track_vars_array TSRMLS_CC);
@@ -265,7 +265,7 @@
php_register_variable("SERVER_NAME", value, track_vars_array TSRMLS_CC);
}
/* SERVER_SOFTWARE */
- value = lstFset_get(rc->t->res_hdrs, "server");
+ value = lstFset_get(rc->t->res_hdrs, "Server");
if (value != NULL)
php_register_variable("SERVER_SOFTWARE", value, track_vars_array TSRMLS_CC);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php