Pull in a fix from upstream Prototype, #702 by fredj (thx fredj)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-05-30 13:12:00 +00:00
parent 4d553f5a38
commit 96d8790258

View File

@@ -211,6 +211,11 @@ OpenLayers.Ajax.Request.prototype = OpenLayers.Class.inherit( OpenLayers.Ajax.Ba
var body = this.options.postBody ? this.options.postBody : parameters;
this.transport.send(this.options.method == 'post' ? body : null);
/* Force Firefox to handle ready state 4 for synchronous requests */
if (!this.options.asynchronous && this.transport.overrideMimeType) {
this.onStateChange();
}
} catch (e) {
this.dispatchException(e);
}