shreemaan-abhishek commented on issue #10760: URL: https://github.com/apache/apisix/issues/10760#issuecomment-1878422775
please provide detailed steps to reproduce. I just gave it a try and it works: - create following route: ```shell curl "http://127.0.0.1:9180/apisix/admin/routes/1" -X PUT \ -H "X-API-KEY: ${ADMIN_API_KEY}" \ -d '{ "uri": "/post", "upstream": { "type": "roundrobin", "nodes": { "httpbin.org:443": 1 }, "scheme": "https" } }' ``` - send a request with `Transfer-Encoding: chunked` header: ```shell curl "http://127.0.0.1:9080/post" -X POST -vvv \ -H "transfer-encoding: chunked" \ -d "asdfgwuierhw9rghad98ghqwe98gqhwre9g8h9hd9vqhwe98ghqwe98ghwg" \ -i Note: Unnecessary use of -X or --request, POST is already inferred. * Trying 127.0.0.1:9080... * Connected to 127.0.0.1 (127.0.0.1) port 9080 > POST /post HTTP/1.1 > Host: 127.0.0.1:9080 > User-Agent: curl/8.4.0 > Accept: */* > transfer-encoding: chunked > Content-Type: application/x-www-form-urlencoded > < HTTP/1.1 200 OK HTTP/1.1 200 OK < Content-Type: application/json Content-Type: application/json < Content-Length: 523 Content-Length: 523 < Connection: keep-alive Connection: keep-alive < Date: Fri, 05 Jan 2024 10:05:00 GMT Date: Fri, 05 Jan 2024 10:05:00 GMT < Access-Control-Allow-Origin: * Access-Control-Allow-Origin: * < Access-Control-Allow-Credentials: true Access-Control-Allow-Credentials: true < Server: APISIX/3.7.0 Server: APISIX/3.7.0 < { "args": {}, "data": "", "files": {}, "form": { "asdfgwuierhw9rghad98ghqwe98gqhwre9g8h9hd9vqhwe98ghqwe98ghwg": "" }, "headers": { "Accept": "*/*", "Content-Length": "59", "Content-Type": "application/x-www-form-urlencoded", "Host": "127.0.0.1", "User-Agent": "curl/8.4.0", "X-Amzn-Trace-Id": "Root=1-6597d44c-569a751f418e33f73f5d3ec1", "X-Forwarded-Host": "127.0.0.1" }, "json": null, "origin": "127.0.0.1, 163.47.148.18", "url": "https://127.0.0.1/post" } * Connection #0 to host 127.0.0.1 left intact ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
