Skip to content

Fix for issue #23#36

Open
augensalat wants to merge 1 commit intomiyagawa:masterfrom
augensalat:master
Open

Fix for issue #23#36
augensalat wants to merge 1 commit intomiyagawa:masterfrom
augensalat:master

Conversation

@augensalat
Copy link

Hope it's OK that way.

I removed this section entirely:

    elsif ( my $te = $headers{'transfer-encoding'} ) {
        if ( $te eq 'chunked' ) {
            DEBUG && warn "[$$] Chunked transfer-encoding set for response\n";
            $chunked = 1;
        }
    }

"Transfer-Encoding: chunked" + "Content-Length" does not make sense IMHO,
but anyway - if "Transfer-Encoding: chunked" already exists in the header, we should
assume, that the body is already properly chunked.

Bernhard

Assume, that a response body without a Content-Length, but with a header
line of "Transfer-Encoding: chunked" is already properly chunked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant