From e8cf9732086c8f45df51c74ce9f4d3bdf03517a7 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 30 Sep 2017 11:05:31 -0700 Subject: [PATCH] tun2: fixup --- lib/tun2/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 9b2fb80..74694a5 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -472,7 +472,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { ProtoMajor: req.ProtoMajor, ProtoMinor: req.ProtoMinor, Header: reshdr, - ContentLength: len(resbody), + ContentLength: int64(len(resbody)), Close: true, Request: req, }