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 |
Wladimir Palant
2015/01/21 15:33:44
I was trying to figure out whether you are using a
|
+ window.navigator.userAgent // HTTP_USER_AGENT |
]; |
return verifySignature(key, signature, params.join("\0")); |