diff options
Diffstat (limited to 'src/common/mac')
-rw-r--r-- | src/common/mac/HTTPMultipartUpload.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/mac/HTTPMultipartUpload.m b/src/common/mac/HTTPMultipartUpload.m index d1289953..dd3612d8 100644 --- a/src/common/mac/HTTPMultipartUpload.m +++ b/src/common/mac/HTTPMultipartUpload.m @@ -185,9 +185,16 @@ [req setHTTPBody:postBody]; [req setHTTPMethod:@"POST"]; - return [NSURLConnection sendSynchronousRequest:req + [response_ release]; + response_ = nil; + + NSData *data = [NSURLConnection sendSynchronousRequest:req returningResponse:&response_ error:error]; + + [response_ retain]; + + return data; } //============================================================================= |