]> Cypherpunks repositories - gostls13.git/commit
net/http/httptest: check whether response bodies are allowed
authorSean Liao <sean@liao.dev>
Sun, 5 Oct 2025 22:09:03 +0000 (23:09 +0100)
committerSean Liao <sean@liao.dev>
Wed, 8 Oct 2025 21:52:40 +0000 (14:52 -0700)
commit4837fbe4145cd47b43eed66fee9eed9c2b988316
tree12bf8535c155110b1401c399f5e73ff8bc7812ef
parentee163197a879cf19aa9758bc544c717445284311
net/http/httptest: check whether response bodies are allowed

Fixes #75471

Change-Id: Ie8fc5fae4b2a9285501198d8379bbffe51ee63f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/709335
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/net/http/httptest/recorder.go
src/net/http/httptest/recorder_test.go