aboutsummaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-12-05 20:20:56 -0500
committerBrad Fitzpatrick <bradfitz@golang.org>2017-12-06 03:55:59 +0000
commitf6be5216279ac0837f895eaeb55be5e9f4ac3ea9 (patch)
treedd922256b82b3dab1694491b699233d3502b270f /src/database
parent0b3b5113c0bbc62306a0404b235cbdf5a431bf67 (diff)
downloadgo-f6be5216279ac0837f895eaeb55be5e9f4ac3ea9.tar.xz
net/http: keep testing DetectContentType of empty body
Historically, DetectContentType has returned "text/plain; charset=utf-8" for an empty body, there was a test for this, and there should continue to be one. CL 46631 changed the content-serving handlers to avoid setting any Content-Type header when serving empty content. Even if that change in behavior is correct, the CL is explicitly not changing DetectContentType, so it must also not change DetectContentType's tests. Change-Id: I7a19c9fabb43be47e349b40e729e49fceb3f2894 Reviewed-on: https://go-review.googlesource.com/82077 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/database')
0 files changed, 0 insertions, 0 deletions