]> Cypherpunks repositories - gostls13.git/commit
net/http: revert header changes in Error
authorRuss Cox <rsc@golang.org>
Fri, 15 Mar 2024 16:56:05 +0000 (12:56 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 15 Mar 2024 17:26:18 +0000 (17:26 +0000)
commitc2021c3004708d07165c39981e1edb43867d6476
tree7adfebb9711d57bfdf6d906561ea3fe5ef453bf2
parent6f1216234003a549e71103ab9794c4630f52aafd
net/http: revert header changes in Error

This reverts CL 544019 and CL 569815, because they break a variety
of tests inside Google that do not expect the Cache-Control header
to be set to no-cache.

A followup CL will add this functionality back after a proposal.

For #50905.

Change-Id: Ie377bfb72ce2c77d11bf31f9617ab6db342a408a
Reviewed-on: https://go-review.googlesource.com/c/go/+/571975
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/net/http/fs_test.go
src/net/http/server.go