summaryrefslogtreecommitdiff
path: root/src/tool_cb_hdr.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-05-17 14:09:17 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-21 20:29:12 +0200
commitf3d836b73601fc6d14cb917e1cd72f43b9056dff (patch)
treea4d06b40b339620f6272c8c2c6581585288c0229 /src/tool_cb_hdr.c
parentc1c27625c797cfb7b21128484b4990446c1e92d9 (diff)
downloadcurl-f3d836b73601fc6d14cb917e1cd72f43b9056dff.tar.gz
curl: added --styled-output
It is enabled by default, so --no-styled-output will switch off the detection/use of bold headers. Closes #2538
Diffstat (limited to 'src/tool_cb_hdr.c')
-rw-r--r--src/tool_cb_hdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c
index 4e9e49a6d..88ce5e13b 100644
--- a/src/tool_cb_hdr.c
+++ b/src/tool_cb_hdr.c
@@ -163,7 +163,7 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
if(!outs->stream && !tool_create_output_file(outs, FALSE))
return failure;
- if(hdrcbdata->global->isatty)
+ if(hdrcbdata->global->isatty && hdrcbdata->global->styled_output)
value = memchr(ptr, ':', cb);
if(value) {
size_t namelen = value - ptr;