[Jifty-commit] r1145 - in jifty/trunk: share/web/static/js
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Jun 2 15:12:29 EDT 2006
Author: alexmv
Date: Fri Jun 2 15:12:28 2006
New Revision: 1145
Modified:
jifty/trunk/ (props changed)
jifty/trunk/share/web/static/js/prototype.js
Log:
r13412 at zoq-fot-pik: chmrr | 2006-06-02 15:12:22 -0400
* Don't assume they set a requestHeaders
Modified: jifty/trunk/share/web/static/js/prototype.js
==============================================================================
--- jifty/trunk/share/web/static/js/prototype.js (original)
+++ jifty/trunk/share/web/static/js/prototype.js Fri Jun 2 15:12:28 2006
@@ -666,9 +666,10 @@
if (this.options.method == 'post') {
var hasContentType = 0;
- for (var i = 0; i < this.options.requestHeaders.length; i += 2)
- if (this.options.requestHeaders[i] == 'Content-Type')
- hasContentType = 1;
+ if (this.options.requestHeaders)
+ for (var i = 0; i < this.options.requestHeaders.length; i += 2)
+ if (this.options.requestHeaders[i] == 'Content-Type')
+ hasContentType = 1;
if (hasContentType == 0)
requestHeaders.push('Content-Type', 'application/x-www-form-urlencoded');
More information about the Jifty-commit
mailing list