summaryrefslogtreecommitdiff
path: root/service/http/handler_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/handler_test.go')
-rw-r--r--service/http/handler_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/http/handler_test.go b/service/http/handler_test.go
index 91f0ca2b..0db999c9 100644
--- a/service/http/handler_test.go
+++ b/service/http/handler_test.go
@@ -24,6 +24,9 @@ func get(url string) (string, *http.Response, error) {
return "", nil, err
}
b, err := ioutil.ReadAll(r.Body)
+ if err != nil {
+ return "", nil, err
+ }
err = r.Body.Close()
if err != nil {
@@ -49,6 +52,9 @@ func getHeader(url string, h map[string]string) (string, *http.Response, error)
}
b, err := ioutil.ReadAll(r.Body)
+ if err != nil {
+ return "", nil, err
+ }
err = r.Body.Close()
if err != nil {