Skip to content

Commit f062e94

Browse files
committed
make gzip pattern check a regex pattrn check
1 parent d1a4951 commit f062e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/inputs/s3/remote_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def compressed_gzip?
8585
# Usually I would use the content_type to retrieve this information.
8686
# but this require another call to S3 for each download which isn't really optimal.
8787
# So we will use the filename to do a best guess at the content type.
88-
::File.extname(remote_object.key).downcase == @gzip_pattern
88+
::File.extname(remote_object.key).downcase =~ Regexp.new(@gzip_pattern)
8989
end
9090

9191
def inspect

0 commit comments

Comments
 (0)