Skip to content

Transfer-Encoding: chunked #10

@weierophinney

Description

@weierophinney

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

Originally posted by @szoper at zfcampus/zf-content-negotiation#61

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions