mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-23 23:12:58 +00:00
Support for multiple upload files in CrashReportSender/HTTPUpload
A=David Major <dmajor@mozilla.com> BUG=https://bugzilla.mozilla.org/show_bug.cgi?id=1048091 R=ted@mielczarek.org Review URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1048091 .
This commit is contained in:
committed by
Ted Mielczarek
parent
dbf56c53a0
commit
7685dfc567
@@ -62,12 +62,14 @@ static void Start(Options *options) {
|
||||
parameters["prod"] = options->product;
|
||||
parameters["ver"] = options->version;
|
||||
|
||||
std::map<string, string> files;
|
||||
files["upload_file_minidump"] = options->minidumpPath;
|
||||
|
||||
// Send it
|
||||
string response, error;
|
||||
bool success = HTTPUpload::SendRequest(options->uploadURLStr,
|
||||
parameters,
|
||||
options->minidumpPath,
|
||||
"upload_file_minidump",
|
||||
files,
|
||||
options->proxy,
|
||||
options->proxy_user_pwd,
|
||||
"",
|
||||
|
||||
@@ -139,12 +139,15 @@ static void Start(Options *options) {
|
||||
parameters["debug_file"] = module_parts[4];
|
||||
parameters["code_file"] = module_parts[4];
|
||||
parameters["debug_identifier"] = compacted_id;
|
||||
|
||||
std::map<string, string> files;
|
||||
files["symbol_file"] = options->symbolsPath;
|
||||
|
||||
string response, error;
|
||||
long response_code;
|
||||
bool success = HTTPUpload::SendRequest(options->uploadURLStr,
|
||||
parameters,
|
||||
options->symbolsPath,
|
||||
"symbol_file",
|
||||
files,
|
||||
options->proxy,
|
||||
options->proxy_user_pwd,
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user