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

Issue 10237050: code review 10237050: net/http: Transport should return an error when respons... (Closed)

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

Description

net/http: Transport should return an error when response body ends early If a server response contains a Content-Length and the body is short, the Transport should end in io.ErrUnexpectedEOF, not io.EOF. Fixes issue 5738

Patch Set 1 #

Patch Set 2 : diff -r 0581827a7481 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 0581827a7481 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 33c84d77a5a4 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -5 lines) Patch
M src/pkg/net/http/response_test.go View 1 1 chunk +26 lines, -0 lines 0 comments Download
M src/pkg/net/http/transfer.go View 1 1 chunk +14 lines, -5 lines 0 comments Download

Messages

Total messages: 4
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 10 months ago (2013-06-21 18:43:35 UTC) #1
kevlar
On 2013/06/21 18:43:35, bradfitz wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
10 years, 10 months ago (2013-06-24 20:17:09 UTC) #2
r
LGTM
10 years, 10 months ago (2013-06-24 20:21:16 UTC) #3
bradfitz
10 years, 10 months ago (2013-06-24 20:27:59 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=41134e67106d ***

net/http: Transport should return an error when response body ends early

If a server response contains a Content-Length and the body is short,
the Transport should end in io.ErrUnexpectedEOF, not io.EOF.

Fixes issue 5738

R=golang-dev, kevlar, r
CC=golang-dev
https://codereview.appspot.com/10237050
Sign in to reply to this message.

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