]> granicus.if.org Git - php/commitdiff
set default response code to 200
authorGeorge Wang <gwang@php.net>
Mon, 3 Nov 2014 16:42:01 +0000 (11:42 -0500)
committerGeorge Wang <gwang@php.net>
Mon, 3 Nov 2014 16:42:45 +0000 (11:42 -0500)
sapi/litespeed/lsapi_main.c

index 425d638f9ef233d09e9cf26f6c43e3bd5ce9e626..6bdf9b7d0c057b4274c77534a971494933ae42dd 100644 (file)
@@ -478,8 +478,8 @@ static int init_request_info( TSRMLS_D )
     SG(request_info).content_length = LSAPI_GetReqBodyLen();
     SG(request_info).path_translated = estrdup( LSAPI_GetScriptFileName());
 
-    /* It is not reset by zend engine, set it to 0. */
-    SG(sapi_headers).http_response_code = 0;
+    /* It is not reset by zend engine, set it to 200. */
+    SG(sapi_headers).http_response_code = 200;
     
     pAuth = LSAPI_GetHeader( H_AUTHORIZATION );
     php_handle_auth_data(pAuth TSRMLS_CC);