mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision e2ac2e7d7539c4eb9963b7f23dbb3f7692fce537
This commit is contained in:
parent
e6e00cb554
commit
59ef536d5e
120 changed files with 1207 additions and 3167 deletions
|
@ -39,7 +39,7 @@ function generateURL(host, protocol, resourceType) {
|
|||
}
|
||||
|
||||
function generateRedirect(host, protocol, target) {
|
||||
var url = "http://{{host}}:{{ports[https][0]}}/common/redirect.py?location=" + encodeURIComponent(target.url);
|
||||
var url = new URL("http://{{host}}:{{ports[https][0]}}/common/redirect.py?location=" + encodeURIComponent(target.url));
|
||||
url.protocol = protocol == Protocol.INSECURE ? "http" : "https";
|
||||
url.hostname = host == Host.SAME_ORIGIN ? "{{host}}" : "{{domains[天気の良い日]}}";
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue