From: Michael Wallner Date: Wed, 28 Dec 2005 22:21:01 +0000 (+0000) Subject: - fix put requests X-Git-Tag: RELEASE_0_21_0~18 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=01acd0086ec41b3c8a72ca19238594e89a5e1d75;p=m6w6%2Fext-http - fix put requests --- diff --git a/http_request_object.c b/http_request_object.c index d2a5192..7567b96 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -446,7 +446,7 @@ STATUS _http_request_object_requesthandler(http_request_object *obj, zval *this_ php_stream *stream = php_stream_open_wrapper(Z_STRVAL_P(GET_PROP(obj, putFile)), "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); if (stream && !php_stream_stat(stream, &ssb)) { - http_request_body_init_ex(obj->request->body, HTTP_REQUEST_BODY_UPLOADFILE, stream, ssb.sb.st_size, 1); + obj->request->body = http_request_body_init_ex(obj->request->body, HTTP_REQUEST_BODY_UPLOADFILE, stream, ssb.sb.st_size, 1); } else { status = FAILURE; }