Skip to content

Commit

Permalink
Fix cookie synchronization issues,upgrade to version 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zyvincent committed Sep 27, 2017
1 parent 92e047f commit c0dca01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sonic-iOS/Sonic/SonicConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ typedef NS_ENUM(NSInteger, SonicErrorType) {
#define SonicHeaderKeySDKVersion @"sonic-sdk-version"

/**
* Current sonic version: Sonic/1.0.
* Current sonic version.
*/
#define SonicHeaderValueSDKVersion @"Sonic/1.1.0"
#define SonicHeaderValueSDKVersion @"Sonic/1.1.1"

/**
* Pass template tag through this field.
Expand Down
5 changes: 2 additions & 3 deletions sonic-iOS/Sonic/SonicSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,9 @@ - (void)start
[self.delegate sessionWillRequest:self];
}
[self syncCookies];
[self requestStartInOperation];
});
[self.mainQueueOperationIdentifiers addObject:opIdentifier];

[self requestStartInOperation];
}

- (void)cancel
Expand Down Expand Up @@ -365,7 +364,7 @@ - (NSDictionary *)getRequestParamsFromConfigHeaders
{
NSBlockOperation *blkOp = [NSBlockOperation blockOperationWithBlock:block];
[[SonicSession sonicSessionQueue] addOperation:blkOp];
return [NSString stringWithFormat:@"%lu",blkOp.hash];
return [NSString stringWithFormat:@"%ld",(unsigned long)blkOp.hash];
}

- (void)session:(SonicSession *)session didRecieveResponse:(NSHTTPURLResponse *)response
Expand Down
2 changes: 1 addition & 1 deletion sonic-iOS/Sonic/SonicUitil.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ @implementation SonicUitil
{
NSBlockOperation *blockOp = [NSBlockOperation blockOperationWithBlock:block];
[[NSOperationQueue mainQueue] addOperation:blockOp];
return [NSString stringWithFormat:@"%lu",blockOp.hash];
return [NSString stringWithFormat:@"%ld",(unsigned long)blockOp.hash];
}

NSString * getDataSha1(NSData *data)
Expand Down

0 comments on commit c0dca01

Please sign in to comment.