Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tool_cb_hdr: allow --remote-header-name for all http responses
- Use the content-disposition filename (server-specified filename) for non-2xx responses. For example, a server may send a content-disposition filename header with a redirect reply (3xx) but not with the final response (2xx). Without this change curl would ignore the server's specified filename and continue to use the filename extracted from the user-specified URL. This is a partial revert of 75d79a4, which limited content-disposition and etag header processing to 2xx response codes. There's no explanation for why that was done. Reported-by: Morgan Willcock Fixes curl#13302 Closes #xxxx
- Loading branch information
Showing
1 changed file
with
69 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters