Skip to content

Commit

Permalink
Delete trailing ; in Content-Disposition header.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Apr 14, 2020
1 parent c9ffde6 commit 7ef9ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/download_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def resolve_url_basename_time(url)
content_disposition_parser = Mechanize::HTTP::ContentDispositionParser.new

parse_content_disposition = lambda do |line|
next unless content_disposition = content_disposition_parser.parse(line, true)
next unless content_disposition = content_disposition_parser.parse(line.sub(/; *$/, ""), true)

filename = nil

Expand Down

0 comments on commit 7ef9ea0

Please sign in to comment.