Skip to content

Commit c0dca01

Browse files
committed
Fix cookie synchronization issues,upgrade to version 1.1.1
1 parent 92e047f commit c0dca01

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

sonic-iOS/Sonic/SonicConstants.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ typedef NS_ENUM(NSInteger, SonicErrorType) {
122122
#define SonicHeaderKeySDKVersion @"sonic-sdk-version"
123123

124124
/**
125-
* Current sonic version: Sonic/1.0.
125+
* Current sonic version.
126126
*/
127-
#define SonicHeaderValueSDKVersion @"Sonic/1.1.0"
127+
#define SonicHeaderValueSDKVersion @"Sonic/1.1.1"
128128

129129
/**
130130
* Pass template tag through this field.

sonic-iOS/Sonic/SonicSession.m

+2-3
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,9 @@ - (void)start
202202
[self.delegate sessionWillRequest:self];
203203
}
204204
[self syncCookies];
205+
[self requestStartInOperation];
205206
});
206207
[self.mainQueueOperationIdentifiers addObject:opIdentifier];
207-
208-
[self requestStartInOperation];
209208
}
210209

211210
- (void)cancel
@@ -365,7 +364,7 @@ - (NSDictionary *)getRequestParamsFromConfigHeaders
365364
{
366365
NSBlockOperation *blkOp = [NSBlockOperation blockOperationWithBlock:block];
367366
[[SonicSession sonicSessionQueue] addOperation:blkOp];
368-
return [NSString stringWithFormat:@"%lu",blkOp.hash];
367+
return [NSString stringWithFormat:@"%ld",(unsigned long)blkOp.hash];
369368
}
370369

371370
- (void)session:(SonicSession *)session didRecieveResponse:(NSHTTPURLResponse *)response

sonic-iOS/Sonic/SonicUitil.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ @implementation SonicUitil
133133
{
134134
NSBlockOperation *blockOp = [NSBlockOperation blockOperationWithBlock:block];
135135
[[NSOperationQueue mainQueue] addOperation:blockOp];
136-
return [NSString stringWithFormat:@"%lu",blockOp.hash];
136+
return [NSString stringWithFormat:@"%ld",(unsigned long)blockOp.hash];
137137
}
138138

139139
NSString * getDataSha1(NSData *data)

0 commit comments

Comments
 (0)