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

Issue 194084: code review 194084: Cosmetic bug or compliance fixes in http.Response. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 6 months ago by petar-m
Modified:
15 years, 6 months ago
Reviewers:
CC:
golang-dev
Visibility:
Public.

Description

Cosmetic bug or compliance fixes in http.Response. (1) http.Response must close resp.Body after writing. (2) Case when resp.Body != nil and resp.ContentLength = 0 should not be treated as an error in Response.Write, because this is what ReadResponse often returns. (3) Changed body.th to body.hdr for readability.

Patch Set 1 #

Patch Set 2 : code review 194084: Cosmetic bug or compliance fixes in http.Response. #

Patch Set 3 : code review 194084: Cosmetic bug or compliance fixes in http.Response. #

Patch Set 4 : code review 194084: Cosmetic bug or compliance fixes in http.Response. #

Patch Set 5 : code review 194084: Cosmetic bug or compliance fixes in http.Response. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -14 lines) Patch
M src/pkg/http/response.go View 1 2 3 9 chunks +16 lines, -14 lines 0 comments Download

Messages

Total messages: 8
petar-m
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 6 months ago (2010-01-26 18:25:40 UTC) #1
rsc
Thanks. I tried to patch this in but had to tweak request.go to say hdr: ...
15 years, 6 months ago (2010-01-26 20:55:25 UTC) #2
petar_csail.mit.edu
Do you want me to take some action? That doesn't look like a review. --P ...
15 years, 6 months ago (2010-01-27 01:41:17 UTC) #3
rsc
On Tue, Jan 26, 2010 at 17:41, Petar Maymounkov <petar@csail.mit.edu> wrote: > Do you want ...
15 years, 6 months ago (2010-01-27 01:47:42 UTC) #4
petar_csail.mit.edu
Done. On Tue, Jan 26, 2010 at 8:47 PM, Russ Cox <rsc@golang.org> wrote: > On ...
15 years, 6 months ago (2010-01-27 16:07:11 UTC) #5
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=02ce85717639 *** Cosmetic bug or compliance fixes in http.Response. (1) http.Response must ...
15 years, 6 months ago (2010-01-28 23:13:30 UTC) #6
rsc1
LGTM
15 years, 6 months ago (2010-01-28 23:13:37 UTC) #7
rsc1
15 years, 6 months ago (2010-01-28 23:16:02 UTC) #8

          
Sign in to reply to this message.

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