Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4366)

Issue 6782139: code review 6782139: net/http: don't send chunked encoding on 204 responses (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by bradfitz
Modified:
11 years, 4 months ago
Reviewers:
CC:
golang-dev
Visibility:
Public.

Description

net/http: don't send chunked encoding on 204 responses RFC 2616: "The 204 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields." Previously we'd trigger chunked encoding by default on responses, and then when finishing the request we'd write the chunk trailers, which counted as a message-body. Fixes issue 4454

Patch Set 1 #

Patch Set 2 : diff -r 529f67226610 https://code.google.com/p/go #

Patch Set 3 : diff -r 529f67226610 https://code.google.com/p/go #

Patch Set 4 : diff -r 751e8610bd5d https://code.google.com/p/go #

Patch Set 5 : diff -r 751e8610bd5d https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M src/pkg/net/http/server.go View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/net/http/transport_test.go View 1 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 2
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 4 months ago (2012-11-30 00:30:44 UTC) #1
bradfitz
11 years, 4 months ago (2012-11-30 02:01:10 UTC) #2
*** Submitted as https://code.google.com/p/go/source/detail?r=86eed47f9b5c ***

net/http: don't send chunked encoding on 204 responses

RFC 2616: "The 204 response MUST NOT include a message-body,
and thus is always terminated by the first empty line after
the header fields."

Previously we'd trigger chunked encoding by default on
responses, and then when finishing the request we'd write the
chunk trailers, which counted as a message-body.

Fixes issue 4454

R=golang-dev
CC=golang-dev
https://codereview.appspot.com/6782139
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b