summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-01-10 11:37:04 +0100
committerjmoenig <jens@moenig.org>2014-01-10 11:37:04 +0100
commit3c4e27899c52d32acba275beb90744b35dde74c0 (patch)
treebb05187cdbd24ab00bd2da6f4974712b2d6bf327
parentfa88fdc761faa224d307e833f74163df48cedb0c (diff)
downloadsnap-3c4e27899c52d32acba275beb90744b35dde74c0.tar.gz
snap-3c4e27899c52d32acba275beb90744b35dde74c0.zip
Revert pull request #295 (xhr-headers)
breaks existing installations
-rwxr-xr-xhistory.txt4
-rw-r--r--threads.js7
2 files changed, 5 insertions, 6 deletions
diff --git a/history.txt b/history.txt
index f0569ff..d536252 100755
--- a/history.txt
+++ b/history.txt
@@ -2064,3 +2064,7 @@ ______
* Morphic: Fixed updateReferences() (how could nobody notice so long?!)
* XML: resolved unexpected assignment expressions (conform to the latest JSLint quibbles)
* validated all source files against the latest JSLint version
+
+140110
+------
+* Threads: Revert pull request #295 (xhr-headers), breaks existing installations
diff --git a/threads.js b/threads.js
index 722ce6b..d4a6732 100644
--- a/threads.js
+++ b/threads.js
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
-modules.threads = '2014-January-09';
+modules.threads = '2014-January-10';
var ThreadManager;
var Process;
@@ -1772,11 +1772,6 @@ Process.prototype.reportURL = function (url) {
if (!this.httpRequest) {
this.httpRequest = new XMLHttpRequest();
this.httpRequest.open("GET", 'http://' + url, true);
- this.httpRequest.setRequestHeader(
- "X-Requested-With",
- "XMLHttpRequest"
- );
- this.httpRequest.setRequestHeader("X-Application", "Snap! 4.0");
this.httpRequest.send(null);
} else if (this.httpRequest.readyState === 4) {
response = this.httpRequest.responseText;