File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,21 @@ module SecureHeaders
1414 end
1515
1616 it "warns if the hpkp report-uri host is the same as the current host" do
17+ report_host = "report-uri.io"
1718 Configuration . default do |config |
1819 config . hpkp = {
1920 max_age : 10000000 ,
2021 pins : [
2122 { sha256 : 'b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c' } ,
2223 { sha256 : '73a2c64f9545172c1195efb6616ca5f7afd1df6f245407cafb90de3998a1c97f' }
2324 ] ,
24- report_uri : ' https://report-uri.io /example-hpkp'
25+ report_uri : " https://#{ report_host } /example-hpkp"
2526 }
2627 end
2728
2829 expect ( Kernel ) . to receive ( :warn ) . with ( Middleware ::HPKP_SAME_HOST_WARNING )
2930
30- middleware . call ( Rack ::MockRequest . env_for ( "https://report-uri.io " , { } ) )
31+ middleware . call ( Rack ::MockRequest . env_for ( "https://#{ report_host } " , { } ) )
3132 end
3233
3334 it "sets the headers" do
You can’t perform that action at this time.
0 commit comments