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)
|
content = string(buf)
|
||||||
} else {
|
} else {
|
||||||
if r != nil {
|
|
||||||
r.Close()
|
|
||||||
}
|
|
||||||
|
|
||||||
r, err := zlib.NewReader(srcReader)
|
r, err := zlib.NewReader(srcReader)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
defer r.Close()
|
defer r.Close()
|
||||||
|
@ -58,9 +54,6 @@ func FromHTTPResponse(resp *http.Response) (*Response, error) {
|
||||||
}
|
}
|
||||||
content = string(buf)
|
content = string(buf)
|
||||||
} else {
|
} else {
|
||||||
if r != nil {
|
|
||||||
r.Close()
|
|
||||||
}
|
|
||||||
content = string(srcbuf)
|
content = string(srcbuf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user