lib/gitlab/file_response.rb in gitlab-4.2.0 vs lib/gitlab/file_response.rb in gitlab-4.3.0
- old
+ new
@@ -37,10 +37,10 @@
super || @file.respond_to?(method_name, include_private)
end
# Parse filename from the 'Content Disposition' header.
def parse_headers!(headers)
- @filename = headers[HEADER_CONTENT_DISPOSITION].split("filename=")[1]
+ @filename = headers[HEADER_CONTENT_DISPOSITION].split('filename=')[1]
@filename = @filename[1...-1] if @filename[0] == '"' # Unquote filenames
end
end
end