From 01acd0086ec41b3c8a72ca19238594e89a5e1d75 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 28 Dec 2005 22:21:01 +0000 Subject: [PATCH] - fix put requests --- http_request_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2