mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
curl: use Content-Disposition before the "URL end" for -OJ
Regression introduced in 7.61.0 Reported-by: Thomas Klausner Fixes #2783 Closes #2813
This commit is contained in:
parent
d6cf93011d
commit
e78f2cfe56
@ -106,9 +106,6 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
|
||||
(protocol & (CURLPROTO_HTTPS|CURLPROTO_HTTP))) {
|
||||
const char *p = str + 20;
|
||||
|
||||
if(!outs->stream && !tool_create_output_file(outs, FALSE))
|
||||
return failure;
|
||||
|
||||
/* look for the 'filename=' parameter
|
||||
(encoded filenames (*=) are not supported) */
|
||||
for(;;) {
|
||||
@ -156,6 +153,8 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
|
||||
}
|
||||
break;
|
||||
}
|
||||
if(!outs->stream && !tool_create_output_file(outs, FALSE))
|
||||
return failure;
|
||||
}
|
||||
|
||||
if(hdrcbdata->config->show_headers &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user