diff options
| author | Tw <tw19881113@gmail.com> | 2017-06-24 14:23:17 +0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-11-15 02:22:21 +0000 |
| commit | 8cdd999bf54f5fae0acbf4a6d5a3911e4692ca28 (patch) | |
| tree | ef8c4e486e1ee60d8b9b360085c64f0e5bbd6530 /src/encoding | |
| parent | bd926e1c65557870d152c42265af7533981fae8a (diff) | |
| download | go-8cdd999bf54f5fae0acbf4a6d5a3911e4692ca28.tar.xz | |
net/http: don't set Content-Type with empty body automatically
We set Content-Type to "text/plain; charset=utf-8" even with blank body
before. Let's strip this unnecessary header though it's harmless in most
cases.
Fixes #20784
Signed-off-by: Tw <tw19881113@gmail.com>
Change-Id: Ic58a410dcbc89f457c6ddd92961d9cbf545b2f4f
Reviewed-on: https://go-review.googlesource.com/46631
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
