mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-19 06:51:18 +00:00
CPURLConnection -sendSynchronousRequest: return nil if CPHTTPRequest failed.
This commit is contained in:
1 parent
bd0114aa06
commit
1c3d658ca1
1 file changed
+3
@@ -111,6 +111,9 @@ var CPURLConnectionDelegate = nil;
|
||||
|
||||
request.send([aRequest HTTPBody]);
|
||||
|
||||
if (!request.success())
|
||||
return nil;
|
||||
|
||||
return [CPData dataWithRawString:request.responseText()];
|
||||
}
|
||||
catch (anException)
|
||||
|
||||
Reference in new issue
Block a user