[Pkg-mozext-commits] [greasemonkey] 01/16: Send a special request header on an update check so that the recipient server can forward to a .meta.js file.

David Prévot taffit at moszumanska.debian.org
Thu Jan 30 13:42:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit 74f1dbc54c11134a75e81266681acf8de5a5d633
Author: sizzlemctwizzle <medleymind at gmail.com>
Date:   Tue Nov 5 16:57:39 2013 -0600

    Send a special request header on an update check so that the recipient server can forward to a .meta.js file.
---
 modules/script.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/script.js b/modules/script.js
index 93a79ba..9c4cfde 100644
--- a/modules/script.js
+++ b/modules/script.js
@@ -731,6 +731,7 @@ Script.prototype.checkForRemoteUpdate = function(aCallback, aForced) {
       .createInstance(Components.interfaces.nsIXMLHttpRequest);
   req.overrideMimeType('application/javascript');
   req.open("GET", url, true);
+  req.setRequestHeader('X-Userscript-Update', 'Greasemonkey');
   req.onload = GM_util.hitch(
       this, "checkRemoteVersion", req, aCallback, aForced);
   req.onerror = GM_util.hitch(null, aCallback, false);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list