aboutsummaryrefslogtreecommitdiff
path: root/src/common/mac/HTTPMultipartUpload.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/mac/HTTPMultipartUpload.m')
-rw-r--r--src/common/mac/HTTPMultipartUpload.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/mac/HTTPMultipartUpload.m b/src/common/mac/HTTPMultipartUpload.m
index 1316b8e0..4b008f5c 100644
--- a/src/common/mac/HTTPMultipartUpload.m
+++ b/src/common/mac/HTTPMultipartUpload.m
@@ -67,7 +67,7 @@
NSString *fmt = @"--%@\r\nContent-Disposition: form-data; name=\"%@\"; "
"filename=\"minidump.dmp\"\r\nContent-Type: application/octet-stream\r\n\r\n";
NSString *pre = [NSString stringWithFormat:fmt, boundary_, escaped];
- NSString *post = [NSString stringWithFormat:@"\r\n--%@--\r\n", boundary_];
+ NSString *post = [NSString stringWithFormat:@"\r\n--%@\r\n", boundary_];
[data appendData:[pre dataUsingEncoding:NSUTF8StringEncoding]];
[data appendData:contents];
@@ -182,6 +182,9 @@
[postBody appendData:fileData];
}
+ NSString *epilogue = [NSString stringWithFormat:@"\r\n--%@--\r\n", boundary_];
+ [postBody appendData:[epilogue dataUsingEncoding:NSUTF8StringEncoding]];
+
[req setHTTPBody:postBody];
[req setHTTPMethod:@"POST"];