默认配置时
1 | GET / HTTP/1.1 |
修改配置
1 | proxy_http_version 1.1; |
再次请求
1 | GET / HTTP/1.1 |
可以发现HTTP/1.0
变成HTTP/1.1
,Connection: close
变成Connection: keep-alive
。
1 | GET / HTTP/1.1 |
1 | proxy_http_version 1.1; |
1 | GET / HTTP/1.1 |
可以发现HTTP/1.0
变成HTTP/1.1
,Connection: close
变成Connection: keep-alive
。