set default response code to 200

This commit is contained in:
George Wang 2014-11-03 11:42:01 -05:00
parent 4d54c4bdf0
commit 1a2ec3fc60

View file

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