cvs: pecl /http http_request_api.c
| From: | Michael Wallner | Date: | Tue, 14 Jun 2005 16:36:28 +0000 |
| Subject: | cvs: pecl /http http_request_api.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-3285@lists.php.net to get a copy of this message | ||
mike Tue Jun 14 12:36:28 2005 EDT
Modified files:
/pecl/http http_request_api.c
Log:
- no need to allocate two contexts for the same payload
http://cvs.php.net/diff.php/pecl/http/http_request_api.c?r1=1.21&r2=1.22&ty=u
Index: pecl/http/http_request_api.c
diff -u pecl/http/http_request_api.c:1.21 pecl/http/http_request_api.c:1.22
--- pecl/http/http_request_api.c:1.21 Tue Jun 14 10:21:23 2005
+++ pecl/http/http_request_api.c Tue Jun 14 12:36:27 2005
@@ -13,7 +13,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: http_request_api.c,v 1.21 2005/06/14 14:21:23 mike Exp $ */
+/* $Id: http_request_api.c,v 1.22 2005/06/14 16:36:27 mike Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -334,8 +334,9 @@
}
if (response) {
- HTTP_CURL_OPT(WRITEDATA, http_curl_callback_data(response));
- HTTP_CURL_OPT(WRITEHEADER, http_curl_callback_data(response));
+ http_curl_callback_ctx *response_ctx = http_curl_callback_data(response);
+ HTTP_CURL_OPT(WRITEDATA, response_ctx);
+ HTTP_CURL_OPT(WRITEHEADER, response_ctx);
}
HTTP_CURL_OPT(HEADER, 0);