From e9df68c528cc42d060a3cdbfd3246e0fb94bddc6 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Thu, 1 Feb 2024 16:29:00 +0800 Subject: [PATCH] mockhttp small fix --- mockhttp/mockhttp_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/mockhttp/mockhttp_test.go b/mockhttp/mockhttp_test.go index bb241b5..c9fc612 100644 --- a/mockhttp/mockhttp_test.go +++ b/mockhttp/mockhttp_test.go @@ -63,7 +63,6 @@ func (p *FooServer) handle(w http.ResponseWriter, req *http.Request) { } func (p *FooServer) postDump(w http.ResponseWriter, req *http.Request) { - // req.Body.Close() io.Copy(w, req.Body) }