- some housekeeping
[m6w6/ext-http] / http_request_object.c
index ead0870361dd25e9e278f7a0d658548a3d13c5c7..80d802f81ebcdc7cc4e1e1cb63fdce821461e2e2 100644 (file)
 
 /* $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;
 }