mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
set default response code to 200
This commit is contained in:
parent
4d54c4bdf0
commit
1a2ec3fc60
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue