ref: 807af1d8473b115a34c40f47a1167365995ebdf5
parent: 144c4ab2236b47812eb4e49ee1657ec0d42eb3d5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri May 9 14:22:51 EDT 2014
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.
--- a/sys/src/cmd/webfs/fs.c
+++ b/sys/src/cmd/webfs/fs.c
@@ -806,7 +806,7 @@
rfork(RFNOTEG);
if(agent == nil)
- agent = "hjdicks";
+ agent = "Mozilla/5.0 (compatible; hjdicks)";
agent = estrdup(agent);
if(s = getenv("httpproxy")){