aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/http2/not_go18.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/net/http2/not_go18.go')
-rw-r--r--vendor/golang.org/x/net/http2/not_go18.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/http2/not_go18.go b/vendor/golang.org/x/net/http2/not_go18.go
index efbf83c..6f8d3f8 100644
--- a/vendor/golang.org/x/net/http2/not_go18.go
+++ b/vendor/golang.org/x/net/http2/not_go18.go
@@ -25,3 +25,5 @@ func reqGetBody(req *http.Request) func() (io.ReadCloser, error) {
}
func reqBodyIsNoBody(io.ReadCloser) bool { return false }
+
+func go18httpNoBody() io.ReadCloser { return nil } // for tests only