From: Michael Wallner Date: Mon, 11 Apr 2005 10:33:00 +0000 (+0000) Subject: * "Status" now is "Response Status" X-Git-Tag: RELEASE_0_8_0~85 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=f6a0510e0a88b9c4a565f17793a79607ba1ff35b * "Status" now is "Response Status" # need to switch to http_message api --- diff --git a/http_methods.c b/http_methods.c index 1b2d80b..5fec5d8 100644 --- a/http_methods.c +++ b/http_methods.c @@ -1358,7 +1358,7 @@ PHP_METHOD(HttpRequest, getResponseCode) data = GET_PROP(obj, responseData); if ( (SUCCESS == zend_hash_find(Z_ARRVAL_P(data), "headers", sizeof("headers"), (void **) &hdrs)) && - (SUCCESS == zend_hash_find(Z_ARRVAL_PP(hdrs), "Status", sizeof("Status"), (void **) &code))) { + (SUCCESS == zend_hash_find(Z_ARRVAL_PP(hdrs), "Response Status", sizeof("Response Status"), (void **) &code))) { RETVAL_STRINGL(Z_STRVAL_PP(code), Z_STRLEN_PP(code), 1); convert_to_long(return_value); } else {