From f6a0510e0a88b9c4a565f17793a79607ba1ff35b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 11 Apr 2005 10:33:00 +0000 Subject: [PATCH] * "Status" now is "Response Status" # need to switch to http_message api --- http_methods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.30.2