diff options
| author | Nodir Turakulov <nodir@google.com> | 2015-10-19 14:36:25 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2015-10-20 01:01:22 +0000 |
| commit | 0bf515c8c4e4ce7ffdbcdb4c0701a3de1892af6c (patch) | |
| tree | 396878862e6f1c99ca58c52007271129ec014967 /src/syscall | |
| parent | d4d16688641738c2ea8bd69a86ee9c10195c898d (diff) | |
| download | go-0bf515c8c4e4ce7ffdbcdb4c0701a3de1892af6c.tar.xz | |
net/http/httptest: detect Content-Type in ResponseRecorder
* detect Content-Type on ReponseRecorder.Write[String] call
if header wasn't written yet, Content-Type header is not set and
Transfer-Encoding is not set.
* fix typos in serve_test.go
Updates #12986
Change-Id: Id2ed8b1994e64657370fed71eb3882d611f76b31
Reviewed-on: https://go-review.googlesource.com/16096
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/syscall')
0 files changed, 0 insertions, 0 deletions
