includes/clientside/static/ajax.js
changeset 40 723bb7acf914
parent 32 4d87aad3c4c0
child 57 b354deeaa4c4
--- a/includes/clientside/static/ajax.js	Mon Jul 02 20:33:57 2007 -0400
+++ b/includes/clientside/static/ajax.js	Tue Jul 03 14:07:35 2007 -0400
@@ -33,7 +33,11 @@
   ajax.onreadystatechange = f;
   ajax.open('POST', uri, true);
   ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
-  ajax.setRequestHeader("Content-length", parms.length);
+  // Setting Content-length in Safari triggers a warning
+  if ( !is_Safari )
+  {
+    ajax.setRequestHeader("Content-length", parms.length);
+  }
   ajax.setRequestHeader("Connection", "close");
   ajax.send(parms);
 }