m6w6 / ext-http

Extended HTTP Support
BSD 2-Clause "Simplified" License
79 stars 22 forks source link

typo in src/php_http_message.c #95

Closed rcanavan closed 5 years ago

rcanavan commented 5 years ago
diff --git a/src/php_http_message.c b/src/php_http_message.c
index 55fdb81..371ecb7 100644
--- a/src/php_http_message.c
+++ b/src/php_http_message.c
@@ -1477,7 +1477,7 @@ static PHP_METHOD(HttpMessage, getResponseCode)
        PHP_HTTP_MESSAGE_OBJECT_INIT(obj);

        if (obj->message->type != PHP_HTTP_RESPONSE) {
-           php_error_docref(NULL, E_WARNING, "http\\Message is not if type response");
+           php_error_docref(NULL, E_WARNING, "http\\Message is not of type response");
            RETURN_FALSE;
        }