Fixed: extraneous colon in https scheme test.

And whitespace formatting.
This commit is contained in:
Aparajita Fishman committed 2013-07-20 13:23:05 -04:00
1 parent e0af5d0573
commit 0bd670b2a3
1 file changed
+4 -3
+4 -3
View File
@@ -156,9 +156,9 @@ var CPURLConnectionDelegate = nil;
// Browsers use "file:", Titanium uses "app:"
_isLocalFileConnection = scheme === "file" ||
((scheme === "http" || scheme === "https:") &&
window.location &&
(window.location.protocol === "file:" || window.location.protocol === "app:"));
((scheme === "http" || scheme === "https") &&
window.location &&
(window.location.protocol === "file:" || window.location.protocol === "app:"));
_HTTPRequest = new CFHTTPRequest();
@@ -257,6 +257,7 @@ var CPURLConnectionDelegate = nil;
[_delegate connection:self didReceiveResponse:response];
}
}
if (!_isCanceled)
{
if ([_delegate respondsToSelector:@selector(connection:didReceiveData:)])