Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/22418d22f21af33ec5d009da585c74cf41181bdd
...commit
http://git.netsurf-browser.org/netsurf.git/commit/22418d22f21af33ec5d009da585c74cf41181bdd
...tree
http://git.netsurf-browser.org/netsurf.git/tree/22418d22f21af33ec5d009da585c74cf41181bdd
The branch, vince/curlapiupdates has been updated
via 22418d22f21af33ec5d009da585c74cf41181bdd (commit)
from f6fd9ecd49e16a9bc6ddfa0fd601d5a38cf2ad65 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=22418d22f21af33ec5d009da585c74cf41181bdd
commit 22418d22f21af33ec5d009da585c74cf41181bdd
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
always user a reference to mime multipart data
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index 40599f0..cae430d 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -1008,13 +1008,9 @@ fetch_curl_postdata_convert(CURL *chandle,
goto convert_failed;
}
- } else if(value_len > sizeof (struct curl_mime_ctx)) {
+ } else {
/* make the curl mime reference the existing multipart
* data which requires use of a callback and context.
- * The use of existing data rather than allowing it to
- * be copied into the curl mime handler is only
- * efficient if the data is larger than a callback
- * context.
*/
struct curl_mime_ctx *cb_ctx;
cb_ctx = malloc(sizeof(struct curl_mime_ctx));
@@ -1034,12 +1030,6 @@ fetch_curl_postdata_convert(CURL *chandle,
free(cb_ctx);
goto convert_failed;
}
- } else {
- /* data copied into the curl mime context */
- code=curl_mime_data(part, multipart->value, value_len);
- if (code != CURLE_OK) {
- goto convert_failed;
- }
}
}
-----------------------------------------------------------------------
Summary of changes:
content/fetchers/curl.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index 40599f0..cae430d 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -1008,13 +1008,9 @@ fetch_curl_postdata_convert(CURL *chandle,
goto convert_failed;
}
- } else if(value_len > sizeof (struct curl_mime_ctx)) {
+ } else {
/* make the curl mime reference the existing multipart
* data which requires use of a callback and context.
- * The use of existing data rather than allowing it to
- * be copied into the curl mime handler is only
- * efficient if the data is larger than a callback
- * context.
*/
struct curl_mime_ctx *cb_ctx;
cb_ctx = malloc(sizeof(struct curl_mime_ctx));
@@ -1034,12 +1030,6 @@ fetch_curl_postdata_convert(CURL *chandle,
free(cb_ctx);
goto convert_failed;
}
- } else {
- /* data copied into the curl mime context */
- code=curl_mime_data(part, multipart->value, value_len);
- if (code != CURLE_OK) {
- goto convert_failed;
- }
}
}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]