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.
This commit is contained in:
cinap_lenrek 2014-05-09 18:22:51 +02:00
parent 144c4ab223
commit 807af1d847

View file

@ -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")){