summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-20 17:12:00 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-20 17:12:00 +0100
commit5bca2223399bb18bada2a48db7411d181e3186e6 (patch)
tree6b4e415d427a74a1ef2077b36fe4b2f764605a53 /config.def.h
parente6cefa584e605b8a9984b1a542098df1191adcb1 (diff)
downloadsurf-5bca2223399bb18bada2a48db7411d181e3186e6.tar.gz
surf-5bca2223399bb18bada2a48db7411d181e3186e6.tar.bz2
surf-5bca2223399bb18bada2a48db7411d181e3186e6.zip
Adapt user agent handling
Now we can only append Surf version to the default WebKit user agent instead of setting the whole string (while this remains possible to do).
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index ac78f0e..50ce75d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,7 +1,6 @@
/* modifier 0 means no modifier */
-static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) "
- "AppleWebKit/537.15 (KHTML, like Gecko) "
- "Chrome/24.0.1295.0 Safari/537.15 Surf/"VERSION;
+static int surfuseragent = 1; /* Append Surf version to default WebKit user agent */
+static char *fulluseragent = ""; /* Or override the whole user agent string */
static char *scriptfile = "~/.surf/script.js";
static char *styledir = "~/.surf/styles/";
static char *cachedir = "~/.surf/cache/";