Stop setting unsafe headers on POSTs via XHR from TestFailures page
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jul 2011 19:39:57 +0000 (19:39 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jul 2011 19:39:57 +0000 (19:39 +0000)
Fixes <http://webkit.org/b/63833> TestFailures page causes a bunch of spew in the
Inspector's console about unsafe headers

Reviewed by Dan Bates.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Utilities.js:
(fetchResource): Removed unnecessary code to set Content-Length and Connection headers.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@90264 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Utilities.js
Tools/ChangeLog

index 7137633d04c76d4a8154c35eef3c59a0e2423056..f9e165e48f3608fabef123f2a9290bca35cd9951 100644 (file)
@@ -60,8 +60,6 @@ function fetchResource(url, method, queryParameters, callback, errorCallback) {
 
     var data = urlEncodeQueryParameters(queryParameters);
     xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
-    xhr.setRequestHeader('Content-Length', data.length);
-    xhr.setRequestHeader('Connection', 'close');
     xhr.send(data);
 }
 
index 57c8cf6e8e160db81fa562b4ea561c1ffd525f21..f2891840f65c66870a4632dde04bd278f071ba55 100644 (file)
@@ -1,3 +1,15 @@
+2011-07-01  Adam Roben  <aroben@apple.com>
+
+        Stop setting unsafe headers on POSTs via XHR from TestFailures page
+
+        Fixes <http://webkit.org/b/63833> TestFailures page causes a bunch of spew in the
+        Inspector's console about unsafe headers
+
+        Reviewed by Dan Bates.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Utilities.js:
+        (fetchResource): Removed unnecessary code to set Content-Length and Connection headers.
+
 2011-07-01  Eric Seidel  <eric@webkit.org>
 
         Reviewed by Adam Barth.