diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2014-02-01 14:02:34 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2014-02-14 20:12:28 +0100 |
commit | 91c13d759a69bfef7cf40b68cdba1992ee32b3bc (patch) | |
tree | a11dcd75d484324042f9eb58e34557f42cae0407 | |
parent | 89c29aa70f8dc07d73d7b6f01c0121dc3c335495 (diff) |
curl: output protocol headers using binary mode
Since protocol headers contain explicit line-endings there should
be no automatic conversion to ASCII text or CRLF line-endings.
This might break third party tools that already depend on this
behaviour. We might need to introduce an option to make this optional.
-rw-r--r-- | src/tool_operate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 9c61623fe..0ecbcada9 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -369,6 +369,10 @@ static int operate_do(struct Configurable *config) heads.stream = newfile; } } + else { + /* always use binary mode for protocol header output */ + set_binmode(heads.stream); + } } /* save the values of noprogress and isatty to restore them later on */ |