Merge pull request #2272 from ahankinson/new-fixed-with-credentials-cpurl

Rework of withCredentials, CPURLRequest, and CPURLConnection
This commit is contained in:
Antoine Mercadal committed 2015-01-14 11:51:14 -08:00
commit eb883bc51e
16 files changed
+2599 -93

No files matched your search

+4 -1
View File
@@ -103,6 +103,9 @@ GLOBAL(CFHTTPRequest) = function()
this._eventDispatcher = new EventDispatcher(this);
this._nativeRequest = new NativeRequest();
// by default, all requests will assume that credentials should not be sent.
this._nativeRequest.withCredentials = false;
var self = this;
this._stateChangeHandler = function()
{
@@ -279,7 +282,7 @@ CFHTTPRequest.prototype.setWithCredentials = function(/*Boolean*/ willSendWithCr
this._nativeRequest.withCredentials = willSendWithCredentials;
};
CFHTTPRequest.prototype.getWithCredentials = function()
CFHTTPRequest.prototype.withCredentials = function()
{
return this._nativeRequest.withCredentials;
};