From a916ad79aa42d5555d6e0e323ab213423df47d88 Mon Sep 17 00:00:00 2001 From: Felipe Siqueira Pinheiro Date: Mon, 6 Apr 2020 12:11:12 -0300 Subject: [PATCH] Fixes S3 fetcher return If the file is not gzipped the `Fetcher` should return the `http.Response.Body` and not nil --- fetcher/fetcher_s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetcher/fetcher_s3.go b/fetcher/fetcher_s3.go index a550b85..06df24c 100644 --- a/fetcher/fetcher_s3.go +++ b/fetcher/fetcher_s3.go @@ -122,5 +122,5 @@ func (s *S3) Fetch() (io.Reader, error) { return gzip.NewReader(resp.Body) } //success! - return nil, nil + return resp.Body, nil }