zfcampus / zf-content-negotiation

BSD 3-Clause "New" or "Revised" License
18 stars 32 forks source link

Transfer-Encoding: chunked #61

Open m4rcinkowski opened 8 years ago

m4rcinkowski commented 8 years ago

It is impossible to implement a controller able to handle chunked HTTP request. This is a kind of requests sent by WSO2 ESB by default.

Consider this example. It results in a 400 Bad Request response with details "JSON decoding error: Syntax error, malformed JSON".

POST / HTTP/1.1
rabbitmq.message.id: urn:uuid:1e91658a-1a15-4ebd-a9da-06b7554614c6
Content-Type: application/json; charset=UTF-8
SOAPAction:
Transfer-Encoding: chunked
Host: xxx
Connection: Keep-Alive
User-Agent: Synapse-PT-HttpComponents-NIO

78
{"type":"xxx","event":"{\"noLogin\":xxx,\"companyId\":xxx,\"userId\":xxx,\"eventDate\":null}"}
0
weierophinney commented 4 years ago

This repository has been closed and moved to laminas-api-tools/api-tools-content-negotiation; a new issue has been opened at https://github.com/laminas-api-tools/api-tools-content-negotiation/issues/10.