diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-10-11 09:23:39 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-10-13 21:55:38 +0000 |
| commit | abbd502d638262fa80e142ad18a89d6c75490672 (patch) | |
| tree | e5f6fe64cd092ca65a58b44ed2653a59359a99a8 /src/database/sql/sql_test.go | |
| parent | 61f1a38bcb52ad5e1753b43c405bb5b144b6966c (diff) | |
| download | go-abbd502d638262fa80e142ad18a89d6c75490672.tar.xz | |
net/http: allow Handlers to test Hijacked conn without spamming error log
Make a zero-byte write to a hijacked connection not log anything, so handlers
can test whether a connection is hacked by doing a Write(nil).
Fixes #16456
Change-Id: Id56caf822c8592067bd8422672f0c1aec89e866c
Reviewed-on: https://go-review.googlesource.com/30812
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Diffstat (limited to 'src/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions
