Revert pull request #295 (xhr-headers)

breaks existing installations
pull/3/merge
jmoenig 2014-01-10 11:37:04 +01:00
rodzic fa88fdc761
commit 3c4e27899c
2 zmienionych plików z 5 dodań i 6 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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;