Fix review comments

This commit is contained in:
kaitoozawa
2025-12-15 16:32:48 +10:00
parent 3be084ade6
commit 149aeaa944
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ RSpec.describe 'BeEF Redirector' do
response = Curl::Easy.http_get("http://127.0.0.1:#{@port}/test/")
expect(response.response_code).to eql(302)
expect(response.body_str).to eql("302 found")
expect(response.header_str).to match(/location:\s*http:\/\/www\.beefproject\.com/i)
expect(response.header_str).to match(/^location:\s*http:\/\/www\.beefproject\.com\r?$/i)
end
end