diff options
author | Valery Piashchynski <[email protected]> | 2019-11-17 18:13:15 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2019-11-17 18:13:15 +0300 |
commit | a7982f6e692e9dc40f035d5f1486cb2bbae71f88 (patch) | |
tree | ab4b32c190bc8bffd9b1b99b806e03192729c59a /service/http/handler_test.go | |
parent | c463235f55cdae5fa7c63a87e7cc73c6e535d27a (diff) |
finish the check
Diffstat (limited to 'service/http/handler_test.go')
-rw-r--r-- | service/http/handler_test.go | 6 |
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 { |