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:
parent
b223627d81
commit
a62dc27d23
1 changed files with 3 additions and 2 deletions
|
@ -129,15 +129,16 @@ static void Start(Options *options) {
|
||||||
NSData *data = [ul send:&error];
|
NSData *data = [ul send:&error];
|
||||||
NSString *result = [[NSString alloc] initWithData:data
|
NSString *result = [[NSString alloc] initWithData:data
|
||||||
encoding:NSUTF8StringEncoding];
|
encoding:NSUTF8StringEncoding];
|
||||||
|
int status = [[ul response] statusCode];
|
||||||
|
|
||||||
fprintf(stdout, "Send: %s\n", error ? [[error description] UTF8String] :
|
fprintf(stdout, "Send: %s\n", error ? [[error description] UTF8String] :
|
||||||
"No Error");
|
"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]);
|
fprintf(stdout, "Result: %d bytes\n%s\n", [data length], [result UTF8String]);
|
||||||
|
|
||||||
[result release];
|
[result release];
|
||||||
[ul release];
|
[ul release];
|
||||||
options->success = !error;
|
options->success = !error && status==200;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
Loading…
Reference in a new issue