Skip to content

Commit

Permalink
Update TUSResumableUpload.m
Browse files Browse the repository at this point in the history
  • Loading branch information
MMasterson authored Sep 14, 2016
1 parent 19a4662 commit de7cfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/TUSResumableUpload.m
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ - (BOOL)createFile
} else {
// Got a valid status code, so update url
NSString *location = [httpResponse.allHeaderFields valueForKey:HTTP_LOCATION];
weakself.uploadUrl = [NSURL URLWithString:location];
weakself.uploadUrl = [NSURL URLWithString:location relativeToURL:self.delegate.createUploadURL];
if (weakself.uploadUrl) {
// If we got a valid URL, set the new state to uploading. Otherwise, will try creating again.k
TUSLog(@"Created resumable upload at %@ for id %@", weakself.uploadUrl, weakself.uploadId);
Expand Down

0 comments on commit de7cfe0

Please sign in to comment.