ref: b93d7f78aaf845e9105279c4ae477f47855b82fa
parent: 534209238563a7c13682ad2bd95a4fa26a53be86
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")){--
⑨