Skip to content

Commit 1a2ec3f

Browse files
author
George Wang
committed
set default response code to 200
1 parent 4d54c4b commit 1a2ec3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sapi/litespeed/lsapi_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ static int init_request_info( TSRMLS_D )
478478
SG(request_info).content_length = LSAPI_GetReqBodyLen();
479479
SG(request_info).path_translated = estrdup( LSAPI_GetScriptFileName());
480480

481-
/* It is not reset by zend engine, set it to 0. */
482-
SG(sapi_headers).http_response_code = 0;
481+
/* It is not reset by zend engine, set it to 200. */
482+
SG(sapi_headers).http_response_code = 200;
483483

484484
pAuth = LSAPI_GetHeader( H_AUTHORIZATION );
485485
php_handle_auth_data(pAuth TSRMLS_CC);

0 commit comments

Comments
 (0)