diff options
| author | Damien Neil <dneil@google.com> | 2020-07-28 12:49:52 -0700 |
|---|---|---|
| committer | Damien Neil <dneil@google.com> | 2020-08-04 19:27:13 +0000 |
| commit | f235275097eb68b36d171908cea6a0be23351a94 (patch) | |
| tree | 537aa71c84c473878557a8b22d95b79195c99d2e /src/encoding/binary | |
| parent | f92337422ef2ca27464c198bb3426d2dc4661653 (diff) | |
| download | go-f235275097eb68b36d171908cea6a0be23351a94.tar.xz | |
net/http: fix cancelation of requests with a readTrackingBody wrapper
Use the original *Request in the reqCanceler map, not the transient
wrapper created to handle body rewinding.
Change the key of reqCanceler to a struct{*Request}, to make it more
difficult to accidentally use the wrong request as the key.
Fixes #40453.
Change-Id: I4e61ee9ff2c794fb4c920a3a66c9a0458693d757
Reviewed-on: https://go-review.googlesource.com/c/go/+/245357
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/encoding/binary')
0 files changed, 0 insertions, 0 deletions
