Land #6543, msu_finder link update
commit
92d4929b3d
|
@ -297,7 +297,7 @@ RSpec.describe MicrosoftPatchFinder do
|
|||
end
|
||||
|
||||
let(:expected_link) do
|
||||
'http://download.microsoft.com/download/9/0/6/906BC7A4-7DF7-4C24-9F9D-3E801AA36ED3/Windows6.0-KB3087918-x86.msu'
|
||||
'https://download.microsoft.com/download/9/0/6/906BC7A4-7DF7-4C24-9F9D-3E801AA36ED3/Windows6.0-KB3087918-x86.msu'
|
||||
end
|
||||
|
||||
let(:download_html_res) do
|
||||
|
|
|
@ -255,7 +255,7 @@ module MicrosoftPatchFinder
|
|||
n = ::Nokogiri::HTML(res.body)
|
||||
|
||||
n.search('a').select { |a|
|
||||
a.attributes['href'] && a.attributes['href'].value.include?('http://download.microsoft.com/download/')
|
||||
a.attributes['href'] && a.attributes['href'].value.include?('https://download.microsoft.com/download/')
|
||||
}.map! { |a| a.attributes['href'].value }.uniq
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue