问题 :
对于 HTTPS 请求,我的代理从响应中删除自定义标头:
HTTP请求:
$ curl -I -x 127.0.0.1:5566 http://www.google.fr
HTTP/1.1 200 OK
...
X-Servedby: 50001 => My custom header is added to the response
Run Code Online (Sandbox Code Playgroud)
完整回复:https : //gist.github.com/vdaubry/eafabf211957cbe87563
HTTPS 请求:
$ curl -I -x 127.0.0.1:5566 https://www.google.fr
HTTP/1.1 200 Connection established
Proxy-Agent: Privoxy/3.0.23
X-Servedby: 50001 => doesn't appear in the final response
HTTP/1.1 200 OK
Date: Sat, 07 Feb 2015 16:29:25 GMT
...
Vary: Accept-Encoding
Run Code Online (Sandbox Code Playgroud)
完整回复:https : //gist.github.com/vdaubry/2869d85b2e8affdc5a8c
我不明白为什么在连接打开时添加了自定义标头但不是最终响应?
更多信息:
我有对多个 Privoxy 实例的 HAProxy 负载平衡请求。HAProxy 正在将 privoxy …