aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/binary/binary.go
diff options
context:
space:
mode:
authorMitar <mitar.git@tnode.com>2024-03-05 23:45:51 +0000
committerGopher Robot <gobot@golang.org>2024-03-06 19:15:50 +0000
commitd463de61b38cc037808970a8aeed8255082a1df5 (patch)
treecdb19e1861072e98074a96530b4ac5c67f3495df /src/encoding/binary/binary.go
parent25af691c43efdc4ff15e3b5355d1f2638bd67e0a (diff)
downloadgo-d463de61b38cc037808970a8aeed8255082a1df5.tar.xz
net/http: remove misleading response headers on error
ServeContent API is to set some headers you want to see in the response before calling ServeContent. But if there is an error, those headers should be removed otherwise they might confused the client. Removing those headers is useful in general in the case of an error, so we remove them in http.Error. Fixes #50905. Change-Id: If8d2786c1512906ac93e6b388df6ab1c5ecd1ea9 GitHub-Last-Rev: 32b6f045a791cf7bc391f018452a05cc872041ba GitHub-Pull-Request: golang/go#64312 Reviewed-on: https://go-review.googlesource.com/c/go/+/544019 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/encoding/binary/binary.go')
0 files changed, 0 insertions, 0 deletions