From a62dc27d2327156ffd80d385e261605af48e3b4e Mon Sep 17 00:00:00 2001 From: "jessicag.feedback@gmail.com" Date: Tue, 13 Apr 2010 19:00:49 +0000 Subject: [PATCH] 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 --- src/tools/mac/symupload/symupload.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/mac/symupload/symupload.m b/src/tools/mac/symupload/symupload.m index d4a30150..7830cdca 100644 --- a/src/tools/mac/symupload/symupload.m +++ b/src/tools/mac/symupload/symupload.m @@ -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; } //=============================================================================