projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
208e6a3
)
- no need to allocate two contexts for the same payload
author
Michael Wallner
<mike@php.net>
Tue, 14 Jun 2005 16:36:27 +0000
(16:36 +0000)
committer
Michael Wallner
<mike@php.net>
Tue, 14 Jun 2005 16:36:27 +0000
(16:36 +0000)
http_request_api.c
patch
|
blob
|
history
diff --git
a/http_request_api.c
b/http_request_api.c
index f82b0a7f4664160f928cb7c1a82b33d77250128b..2a4884ad9d2660f9419544464bae63a127d1dc16 100644
(file)
--- a/
http_request_api.c
+++ b/
http_request_api.c
@@
-334,8
+334,9
@@
PHP_HTTP_API STATUS _http_request_init(CURL *ch, http_request_method meth, const
}
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);