]> Cypherpunks repositories - gostls13.git/commit
http: return 413 instead of 400 when the request body is too large
authorDave Cheney <dave@cheney.net>
Thu, 25 Aug 2011 10:00:00 +0000 (14:00 +0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 25 Aug 2011 10:00:00 +0000 (14:00 +0400)
commit8511ed454a40f861e1b2aac6acbe6d6aa8325bf3
tree9c9d0c7171a5cd341d2587c717307b8f1bed985d
parent1f0d277cc1bfac5a92432f645c6a504a17dabce0
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
https://golang.org/cl/4962041
src/pkg/http/serve_test.go
src/pkg/http/server.go