summaryrefslogtreecommitdiff
path: root/sys/src/cmd/webfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-05-09 18:22:51 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-05-09 18:22:51 +0200
commit807af1d8473b115a34c40f47a1167365995ebdf5 (patch)
tree00be05e2e944202f946b4279d81159cbfd0fc5b6 /sys/src/cmd/webfs
parent144c4ab2236b47812eb4e49ee1657ec0d42eb3d5 (diff)
webfs: use mozilla compatible user agent as default
sites like google return the wrong characterset when they do not recognize the user-agent. so setting default user agent to something thats likely to pass these idiotic browser tests.
Diffstat (limited to 'sys/src/cmd/webfs')
-rw-r--r--sys/src/cmd/webfs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/webfs/fs.c b/sys/src/cmd/webfs/fs.c
index 52a7c5092..076f2acbb 100644
--- a/sys/src/cmd/webfs/fs.c
+++ b/sys/src/cmd/webfs/fs.c
@@ -806,7 +806,7 @@ main(int argc, char *argv[])
rfork(RFNOTEG);
if(agent == nil)
- agent = "hjdicks";
+ agent = "Mozilla/5.0 (compatible; hjdicks)";
agent = estrdup(agent);
if(s = getenv("httpproxy")){