diff --git a/sonic-iOS/Sonic/SonicConstants.h b/sonic-iOS/Sonic/SonicConstants.h index 08d00b1..2658ff4 100644 --- a/sonic-iOS/Sonic/SonicConstants.h +++ b/sonic-iOS/Sonic/SonicConstants.h @@ -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. diff --git a/sonic-iOS/Sonic/SonicSession.m b/sonic-iOS/Sonic/SonicSession.m index e8063e0..0d9e68c 100644 --- a/sonic-iOS/Sonic/SonicSession.m +++ b/sonic-iOS/Sonic/SonicSession.m @@ -202,10 +202,9 @@ - (void)start [self.delegate sessionWillRequest:self]; } [self syncCookies]; + [self requestStartInOperation]; }); [self.mainQueueOperationIdentifiers addObject:opIdentifier]; - - [self requestStartInOperation]; } - (void)cancel @@ -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 diff --git a/sonic-iOS/Sonic/SonicUitil.m b/sonic-iOS/Sonic/SonicUitil.m index 53d310d..4d880c7 100644 --- a/sonic-iOS/Sonic/SonicUitil.m +++ b/sonic-iOS/Sonic/SonicUitil.m @@ -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)