aliyun / aliyun-oss-c-sdk

Aliyun OSS SDK for C
MIT License
151 stars 86 forks source link

sdk发送的http请求同时带有Transfer-Encoding和Content-Length,导致被nginx拦截 #104

Open qchenzi opened 1 year ago

qchenzi commented 1 year ago
image

如图,到底是要用分块还是非分块解析呢?因为Transfer-Encoding和Content-Length同时存在,故而会被nginx识别为错误请求而拦截掉。

如下:

2023/10/10 10:54:24 [info] 64531#64531: 147915334 client sent "Content-Length" and "Transfer-Encoding" headers at the same time while reading client request headers, client: 10.16.64.20, server: .xxxx.com, request: "PUT /aaaaaaa/bbb HTTP/1.1", host: "oss.xxx.com"

neepher commented 1 year ago

遇到了同样的问题,什么时候可以解决啊?