We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a4951 commit f062e94Copy full SHA for f062e94
lib/logstash/inputs/s3/remote_file.rb
@@ -85,7 +85,7 @@ def compressed_gzip?
85
# Usually I would use the content_type to retrieve this information.
86
# but this require another call to S3 for each download which isn't really optimal.
87
# So we will use the filename to do a best guess at the content type.
88
- ::File.extname(remote_object.key).downcase == @gzip_pattern
+ ::File.extname(remote_object.key).downcase =~ Regexp.new(@gzip_pattern)
89
end
90
91
def inspect
0 commit comments