]> Cypherpunks repositories - gostls13.git/commit
net/http: empty contenty-type treated as application/octet-stream
authorJakub Ryszard Czarnowicz <j.czarnowicz@gmail.com>
Fri, 20 Dec 2013 19:49:42 +0000 (11:49 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 20 Dec 2013 19:49:42 +0000 (11:49 -0800)
commit57e27a879eea9ea4e11f07ecb76393434ff54d1e
treef642c30b1d8fcc2369a1546fd32115c8e429b293
parent0e97f4187e4326e6d323ce07610efdae13e7fcc8
net/http: empty contenty-type treated as application/octet-stream

RFC 2616, section 7.2.1 - empty type SHOULD be treated as
application/octet-stream.
Fixes #6616.

R=golang-codereviews, gobot, bradfitz, josharian
CC=golang-codereviews
https://golang.org/cl/31810043
src/pkg/net/http/request.go
src/pkg/net/http/request_test.go