aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/http2/go18.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/net/http2/go18.go')
-rw-r--r--vendor/golang.org/x/net/http2/go18.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/http2/go18.go b/vendor/golang.org/x/net/http2/go18.go
index 73cc238..4f30d22 100644
--- a/vendor/golang.org/x/net/http2/go18.go
+++ b/vendor/golang.org/x/net/http2/go18.go
@@ -52,3 +52,5 @@ func reqGetBody(req *http.Request) func() (io.ReadCloser, error) {
func reqBodyIsNoBody(body io.ReadCloser) bool {
return body == http.NoBody
}
+
+func go18httpNoBody() io.ReadCloser { return http.NoBody } // for tests only