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

Issue 4962041: code review 4962041: http: return 413 instead of 400 when the request body i... (Closed)

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

Description

http: return 413 instead of 400 when the request body is too large RFC2616 says servers should return this status code when rejecting requests that are too large. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.14

Patch Set 1 #

Patch Set 2 : diff -r 0d64f70fe250 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 0d64f70fe250 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 0d64f70fe250 https://go.googlecode.com/hg/ #

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

Messages

Total messages: 4
dave_cheney.net
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 7 months ago (2011-08-25 09:10:58 UTC) #1
bradfitz
LGTM On Thu, Aug 25, 2011 at 1:10 PM, <dave@cheney.net> wrote: > Reviewers: bradfitz, > ...
13 years, 7 months ago (2011-08-25 09:15:17 UTC) #2
dave_cheney.net
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-08-25 09:39:08 UTC) #3
bradfitz
13 years, 7 months ago (2011-08-25 10:00:07 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=0b0c8a77092a ***

http: return 413 instead of 400 when the request body is too large

RFC2616 says servers should return this status code when
rejecting requests that are too large.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.14

R=bradfitz
CC=golang-dev
http://codereview.appspot.com/4962041

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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