diff options
author | George Wang <gwang@php.net> | 2014-11-03 11:42:01 -0500 |
---|---|---|
committer | George Wang <gwang@php.net> | 2014-11-03 11:42:01 -0500 |
commit | 1a2ec3fc60e428c47fd59c9dd7966c71ca44024d (patch) | |
tree | beb65e9e9674ca01ff269adde3c9f8d52cb73dc4 /sapi | |
parent | 4d54c4bdf0213bed112af70c98e92de51cdf49f7 (diff) | |
download | php-git-1a2ec3fc60e428c47fd59c9dd7966c71ca44024d.tar.gz |
set default response code to 200
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/litespeed/lsapi_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index 425d638f9e..6bdf9b7d0c 100644 --- a/sapi/litespeed/lsapi_main.c +++ b/sapi/litespeed/lsapi_main.c @@ -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); |