clue · GitHub

Conversation

If the request body is chunked-encoded, the data will be decoded and emitted on the data event.
The `Transfer-Encoding` header will be removed.

Any other `Transfer-Encoding` than `chunked` will result in an error message.

if (strtolower($request->getHeaderLine('Transfer-Encoding')) !== 'chunked') {
$this->emit('error', array(new \InvalidArgumentException('Only chunked-encoding is allowed for Transfer-Encoding')));
return $this->writeError($conn, 400);

@legionth

clue

clue approved these changes Mar 6, 2017

jsor

jsor approved these changes Mar 6, 2017

WyriHaximus

@legionth

@WyriHaximus

@clue clue mentioned this pull request

Apr 6, 2018

Merged

Read the original on github.com ↗