PageMatch: Return fetched content in match_data

If we want caching to work in the `Xorg` strategy, it's necessary to
pass fetched content back in the `match_data` hash.
This commit is contained in:
Sam Ford 2020-12-24 21:48:31 -05:00
parent 5143b8629a
commit eedd108ace
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -92,7 +92,7 @@ module Homebrew
provided_content
else
match_data.merge!(Strategy.page_content(url))
match_data.delete(:content)
match_data[:content]
end
return match_data if content.blank?