Nginx 反向代理 Golang HTTP 报错:
http: wrote more than the declared Content-Length
Nginx 配置如下:
location / {
proxy_pass http://127.0.0.1:6003;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
}
有哪位 v 友遇到过,该如何解决
1
julyclyde 2023-07-19 12:13:28 +08:00
这句错误信息是 nginx“产生”的,还是 nginx 从 golang 那边转发过来的?
|