aboutsummaryrefslogtreecommitdiff
path: root/src/tools/linux/symupload/minidump_upload.cc
diff options
context:
space:
mode:
authormkrebs@chromium.org <mkrebs@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-05-24 20:22:48 +0000
committermkrebs@chromium.org <mkrebs@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-05-24 20:22:48 +0000
commitd6b6959e0eee58899d1a35a8a98d5d3eb8275be2 (patch)
treefb29b2d30b4517e80606c60f19c8133a6db907a9 /src/tools/linux/symupload/minidump_upload.cc
parentInitialize a CustomClientInfo variable. (Coverity) (diff)
downloadbreakpad-d6b6959e0eee58899d1a35a8a98d5d3eb8275be2.tar.xz
sym_upload: Show failure if symbol server gives redirect response
Add a "response_code" parameter to Linux's HTTPUpload::SendRequest() that, if non-NULL, will be set to the response code of the HTTP request. Using that, sym_upload will print a failure message on Linux if the response code is not 200. This is in line with the change made by http://breakpad.appspot.com/77001/ for the Mac version. BUG=google-breakpad:480, chromium-os:30032 TEST=Ran "sym_upload powertop.sym http://test.webdav.org/redir-tmp/" Ran "sym_upload powertop.sym http://clients2.google.com/cr/staging_symbol" Review URL: https://breakpad.appspot.com/388002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@968 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools/linux/symupload/minidump_upload.cc')
-rw-r--r--src/tools/linux/symupload/minidump_upload.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/linux/symupload/minidump_upload.cc b/src/tools/linux/symupload/minidump_upload.cc
index 6f1748ad..144c8bf6 100644
--- a/src/tools/linux/symupload/minidump_upload.cc
+++ b/src/tools/linux/symupload/minidump_upload.cc
@@ -71,6 +71,7 @@ static void Start(Options *options) {
options->proxy_user_pwd,
"",
&response,
+ NULL,
&error);
if (success) {