test fd
This commit is contained in:
parent
75fc71ccb4
commit
30876ae2bf
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user