mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-02 23:26:16 +00:00
CPURLConnection -sendSynchronousRequest: return nil if CPHTTPRequest failed.
This commit is contained in:
@@ -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