X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_object.c;h=80d802f81ebcdc7cc4e1e1cb63fdce821461e2e2;hb=2167974492440b31bc379a5f74a0706d3a4d481b;hp=ead0870361dd25e9e278f7a0d658548a3d13c5c7;hpb=c5eec6611ed1dd1e9e984deb007bc11c92784451;p=m6w6%2Fext-http diff --git a/http_request_object.c b/http_request_object.c index ead0870..80d802f 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -12,10 +12,6 @@ /* $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #define HTTP_WANT_CURL #include "php_http.h" @@ -982,11 +978,6 @@ PHP_METHOD(HttpRequest, setMethod) RETURN_FALSE; } - if (meth >= HTTP_GET && meth <= HTTP_PUT) { - getObject(http_request_object, obj); - curl_easy_setopt(obj->request->ch, CURLOPT_CUSTOMREQUEST, NULL); - } - UPD_PROP(long, method, meth); RETURN_TRUE; }