aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_operate.c4
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 */