Send the crash log to the server.

This commit is contained in:
Brent Simmons 2019-01-11 21:59:27 -08:00
parent 0b87aa46ca
commit 3b7fe2e3ab
1 changed files with 4 additions and 2 deletions

View File

@ -94,7 +94,7 @@ struct CrashReporter {
}
static func sendCrashLogText(_ crashLogText: String) {
let request = NSMutableURLRequest(url: URL(string: "https://ranchero.com/netnewswire/crashreportcatcher.php")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 60.0)
var request = URLRequest(url: URL(string: "https://ranchero.com/netnewswire/crashreportcatcher.php")!)
request.httpMethod = HTTPMethod.post
let boundary = "0xKhTmLbOuNdArY"
@ -106,7 +106,9 @@ struct CrashReporter {
let formData = formString.data(using: .utf8, allowLossyConversion: true)
request.httpBody = formData
// TODO: Implement one-shot-download method in RSWeb that takes a URL request.
download(request) { (_, _, _) in
// Dont care about the result.
}
}
static func runCrashReporterWindow(_ crashLog: CrashLog) {