Mac now takes response code into account when determining success of a symupload.

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@570 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
jessicag.feedback@gmail.com 2010-04-13 19:00:49 +00:00
parent b223627d81
commit a62dc27d23

View file

@ -129,15 +129,16 @@ static void Start(Options *options) {
NSData *data = [ul send:&error];
NSString *result = [[NSString alloc] initWithData:data
encoding:NSUTF8StringEncoding];
int status = [[ul response] statusCode];
fprintf(stdout, "Send: %s\n", error ? [[error description] UTF8String] :
"No Error");
fprintf(stdout, "Response: %d\n", [[ul response] statusCode]);
fprintf(stdout, "Response: %d\n", status);
fprintf(stdout, "Result: %d bytes\n%s\n", [data length], [result UTF8String]);
[result release];
[ul release];
options->success = !error;
options->success = !error && status==200;
}
//=============================================================================