aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/mac/HTTPMultipartUpload.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/mac/HTTPMultipartUpload.m b/src/common/mac/HTTPMultipartUpload.m
index 29fa040b..2ed1b632 100644
--- a/src/common/mac/HTTPMultipartUpload.m
+++ b/src/common/mac/HTTPMultipartUpload.m
@@ -195,10 +195,11 @@
if ([[req URL] isFileURL]) {
[[req HTTPBody] writeToURL:[req URL] options:0 error:error];
} else {
+ NSURLResponse *response = nil;
data = [NSURLConnection sendSynchronousRequest:req
- returningResponse:&response_
+ returningResponse:&response
error:error];
- [response_ retain];
+ response_ = (NSHTTPURLResponse *)[response retain];
}
[req release];