summaryrefslogtreecommitdiff
path: root/service/http/handler_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2019-11-17 18:13:15 +0300
committerValery Piashchynski <[email protected]>2019-11-17 18:13:15 +0300
commita7982f6e692e9dc40f035d5f1486cb2bbae71f88 (patch)
treeab4b32c190bc8bffd9b1b99b806e03192729c59a /service/http/handler_test.go
parentc463235f55cdae5fa7c63a87e7cc73c6e535d27a (diff)
finish the check
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 {