diff --git a/README-en.md b/README-en.md index 32b5b161..5bc017a1 100644 --- a/README-en.md +++ b/README-en.md @@ -30,6 +30,8 @@ Modify configuration file `~/.cow/rc` (OS X or Linux) or `rc.txt` (Windows). A s # Line starting with # is comment and will be ignored # Local proxy listen address + # If cow is deployed behind Loadbalancer, you should specified PAC address(eg. foo.bar.com) like this + # listen = http://127.0.0.1:7777 foo.bar.com:7777 listen = http://127.0.0.1:7777 # SOCKS5 parent proxy diff --git a/README.md b/README.md index faf3c84c..cea7fb52 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ COW 的设计目标是自动化,理想情况下用户无需关心哪些网站 # 配置 HTTP 和 HTTPS 代理时请填入该地址 # 若配置代理时有对所有协议使用该代理的选项,且你不清楚此选项的含义,请勾选 # 或者在自动代理配置中填入 http://127.0.0.1:7777/pac + # 如果 cow 部署在负载均衡后面, 需要自定义 PAC 地址(例如: foo.bar.com)如下 + # listen = http://127.0.0.1:7777 foo.bar.com:7777 listen = http://127.0.0.1:7777 # SOCKS5 二级代理 diff --git a/error.go b/error.go index fad75c75..efbe88fd 100644 --- a/error.go +++ b/error.go @@ -13,7 +13,7 @@ var headRawTmpl = "HTTP/1.1 {{.CodeReason}}\r\n" + "Connection: keep-alive\r\n" + "Cache-Control: no-cache\r\n" + "Pragma: no-cache\r\n" + - "Content-Type: text/html\r\n" + + "Content-Type: text/html;charset=utf-8\r\n" + "Content-Length: {{.Length}}\r\n" var errPageTmpl, headTmpl *template.Template @@ -31,7 +31,7 @@ func init() {