go format code changes
This commit is contained in:
parent
c2e2725855
commit
d400d33b1e
@ -1,7 +1,7 @@
|
|||||||
package tracer
|
package tracer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ func (t *FastHttpTransport) copyResponse(dst *http.Response, src *fasthttp.Respo
|
|||||||
|
|
||||||
// Cast to a string to make a copy seeing as src.Body() won't
|
// Cast to a string to make a copy seeing as src.Body() won't
|
||||||
// be valid after the response is released back to the pool (fasthttp.ReleaseResponse).
|
// be valid after the response is released back to the pool (fasthttp.ReleaseResponse).
|
||||||
dst.Body = ioutil.NopCloser(strings.NewReader(string(src.Body())))
|
dst.Body = io.NopCloser(strings.NewReader(string(src.Body())))
|
||||||
|
|
||||||
return dst
|
return dst
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user