This commit is contained in:
eson 2018-12-18 01:46:41 +08:00
parent 75fc71ccb4
commit 30876ae2bf

View File

@ -45,10 +45,6 @@ func FromHTTPResponse(resp *http.Response) (*Response, error) {
}
content = string(buf)
} else {
if r != nil {
r.Close()
}
r, err := zlib.NewReader(srcReader)
if err == nil {
defer r.Close()
@ -58,9 +54,6 @@ func FromHTTPResponse(resp *http.Response) (*Response, error) {
}
content = string(buf)
} else {
if r != nil {
r.Close()
}
content = string(srcbuf)
}
}