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

Issue 6206106: code review 6206106: net/http: clarify ErrBodyNotAllowed error message (Closed)

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

Description

net/http: clarify ErrBodyNotAllowed error message It's usually due to writing on HEAD requests.

Patch Set 1 #

Patch Set 2 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 9e5ed0741dc8 https://go.googlecode.com/hg/ #

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

Messages

Total messages: 8
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2012-05-23 15:58:16 UTC) #1
rsc
"http: body not allowed" ?
12 years, 9 months ago (2012-05-23 16:06:44 UTC) #2
bradfitz
Even shorter would be "bad", which is also not helpful in diagnosing the problem. If ...
12 years, 9 months ago (2012-05-23 16:09:33 UTC) #3
r2
On May 23, 2012, at 9:09 AM, Brad Fitzpatrick wrote: > Even shorter would be ...
12 years, 9 months ago (2012-05-23 16:19:31 UTC) #4
bradfitz
On Wed, May 23, 2012 at 9:19 AM, Rob 'Commander' Pike <r@google.com> wrote: > > ...
12 years, 9 months ago (2012-05-23 16:25:54 UTC) #5
r
> I have context but can't return it without breaking Go1 compatibility. > ErrBodyNotAllowed is ...
12 years, 9 months ago (2012-05-23 16:28:43 UTC) #6
r
LGTM
12 years, 9 months ago (2012-05-23 16:29:11 UTC) #7
bradfitz
12 years, 9 months ago (2012-05-23 16:31:32 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=fe8549b7050a ***

net/http: clarify ErrBodyNotAllowed error message

It's usually due to writing on HEAD requests.

R=golang-dev, rsc, r, r
CC=golang-dev
http://codereview.appspot.com/6206106
Sign in to reply to this message.

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