mirror of
https://github.com/gosticks/brew.git
synced 2026-12-04 11:41:45 +00:00
HeaderMatch: Fix content-disposition regex logic
This commit is contained in:
@@ -47,7 +47,7 @@ module Homebrew
|
||||
|
||||
if (filename = merged_headers["content-disposition"])
|
||||
if regex
|
||||
match ||= location[regex, 1]
|
||||
match ||= filename[regex, 1]
|
||||
else
|
||||
v = Version.parse(filename, detected_from_url: true)
|
||||
match ||= v.to_s unless v.null?
|
||||
|
||||
Reference in New Issue
Block a user