aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2019-04-22 12:02:12 +0000
committerGitHub <noreply@github.com>2019-04-22 12:02:12 +0000
commitb0509cee7d56943ed59fcc5eefa1aa1baf9752ea (patch)
tree23072d3586d26ec80327ebb66aeb3ffe28ec6b51 /main.c
parentUpdate ChangeLog (diff)
parentAllow to override UserAgent (diff)
downloadw3m-b0509cee7d56943ed59fcc5eefa1aa1baf9752ea.tar.gz
w3m-b0509cee7d56943ed59fcc5eefa1aa1baf9752ea.zip
Merge pull request #113 from spk/allow-override-user-agent
Allow to override UserAgent
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 43e181c..7bb058e 100644
--- a/main.c
+++ b/main.c
@@ -375,6 +375,8 @@ make_optional_header_string(char *s)
Strcopy_charp_n(hs, s, p - s);
if (!Strcasecmp_charp(hs, "content-type"))
override_content_type = TRUE;
+ if (!Strcasecmp_charp(hs, "user-agent"))
+ override_user_agent = TRUE;
Strcat_charp(hs, ": ");
if (*(++p)) { /* not null header */
SKIP_BLANKS(p); /* skip white spaces */