From 515f11e79bf1d13a1659cb7d4cb03ba26a3bbae6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 24 Oct 2011 17:28:41 +0200 Subject: large headers: have curl accept >16K headers As commit 5850cc4808ab clarifies, libcurl can deliver header lines that are longer than CURL_MAX_WRITE_SIZE, only body data is limited to that size. The curl tool has check (when built debug-enabled) that made the wrong checks and this new test 1205 verifies that larger headers work. --- src/tool_cb_hdr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tool_cb_hdr.c') diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c index 06ced4541..fb24b4508 100644 --- a/src/tool_cb_hdr.c +++ b/src/tool_cb_hdr.c @@ -60,8 +60,7 @@ size_t tool_header_cb(void *ptr, size_t size, size_t nmemb, void *userdata) return failure; #ifdef DEBUGBUILD - if((size * nmemb > (size_t)CURL_MAX_WRITE_SIZE) || - (size * nmemb > (size_t)CURL_MAX_HTTP_HEADER)) { + if(size * nmemb > (size_t)CURL_MAX_HTTP_HEADER) { warnf(outs->config, "Header data exceeds single call write limit!\n"); return failure; } -- cgit v1.2.3