mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-24 12:48:43 +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
@@ -228,12 +228,14 @@ int wmain(int argc, wchar_t *argv[]) {
|
||||
fwprintf(stderr, L"Warning: Could not get file version for %s\n", module);
|
||||
}
|
||||
|
||||
map<wstring, wstring> files;
|
||||
files[L"symbol_file"] = symbol_file;
|
||||
|
||||
bool success = true;
|
||||
|
||||
while (currentarg < argc) {
|
||||
int response_code;
|
||||
if (!HTTPUpload::SendRequest(argv[currentarg], parameters,
|
||||
symbol_file, L"symbol_file",
|
||||
if (!HTTPUpload::SendRequest(argv[currentarg], parameters, files,
|
||||
timeout == -1 ? NULL : &timeout,
|
||||
nullptr, &response_code)) {
|
||||
success = false;
|
||||
|
||||
Reference in New Issue
Block a user