Index: lib/whitelisting.js |
=================================================================== |
--- a/lib/whitelisting.js |
+++ b/lib/whitelisting.js |
@@ -62,11 +62,11 @@ |
let verifyKey = function(key, signature, url, docDomain) |
{ |
- let uri = new URI(url); |
+ url = new URL(url); |
let params = [ |
- uri.path, // REQUEST_URI |
- uri.asciiHost + (uri.port != -1 ? ":" + uri.port : ""), // HTTP_HOST |
- window.navigator.userAgent // HTTP_USER_AGENT |
+ url.pathname + url.search, // REQUEST_URI |
+ url.host, // HTTP_HOST |
+ window.navigator.userAgent // HTTP_USER_AGENT |
]; |
return verifySignature(key, signature, params.join("\0")); |