Skip to content

Commit

Permalink
Added support for GZ files
Browse files Browse the repository at this point in the history
  • Loading branch information
zawadz88 authored Jun 27, 2019
1 parent 24f9161 commit b2ea20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func httpCall(apiToken, method, url string, input io.Reader, output interface{})
}

func findImages(testDir string) (imageFilePaths []string) {
for _, ext := range []string{".jpg", ".jpeg", ".png", ".log", ".zip"} {
for _, ext := range []string{".jpg", ".jpeg", ".png", ".log", ".zip", ".gz"} {
if paths, err := filepath.Glob(filepath.Join(testDir, "*"+ext)); err == nil {
imageFilePaths = append(imageFilePaths, paths...)
}
Expand Down

0 comments on commit b2ea20e

Please sign in to comment.