Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http2: use custom concurrent safe noBodyReader type when no body is p…
…resent Previously it used to use an empty bytes.Reader. However bytes.Reader is concurrent safe when empty only on Read, that an issue now that io.NopCloser forwards WriteTo. Change-Id: Icdbd63876394b66ae8f3c8d410dc81a9b8dff33b Reviewed-on: https://go-review.googlesource.com/c/net/+/401014 Reviewed-by: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> Auto-Submit: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
- Loading branch information