Close unread resp.Body

This commit is contained in:
Zero King
2017-07-11 12:55:44 +00:00
parent 63851524ff
commit 8888a4626a
+1
View File
@@ -70,6 +70,7 @@ func (r *remoteLogger) run() {
if err != nil {
continue
}
resp.Body.Close()
loc := resp.Header.Get("Location")
if loc == "" {
continue