From: Michael Wallner Date: Sat, 27 May 2006 10:33:18 +0000 (+0000) Subject: - fix HttpMessage::setRequestMethod() errenously issuing a warning about an unknown... X-Git-Tag: RELEASE_1_0_0~17 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=b20ced89bee0617c45447f51ed0baa7046851a65 - fix HttpMessage::setRequestMethod() errenously issuing a warning about an unknown request method --- diff --git a/http_message_object.c b/http_message_object.c index 9a62af4..5e03e1e 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -1020,8 +1020,8 @@ PHP_METHOD(HttpMessage, setRequestMethod) http_error(HE_WARNING, HTTP_E_INVALID_PARAM, "Cannot set HttpMessage::requestMethod to an empty string"); RETURN_FALSE; } - if (SUCCESS != http_check_method(method)) { - http_error_ex(HE_WARNING, HTTP_E_REQUEST_METHOD, "Unkown request method: %s", method); + if (!http_request_method_exists(1, 0, method)) { + http_error_ex(HE_WARNING, HTTP_E_REQUEST_METHOD, "Unknown request method: %s", method); RETURN_FALSE; }