Skip to content

Commit

Permalink
Fix session cookie overwritten by the cookie in shared storage (#1943)
Browse files Browse the repository at this point in the history
Set request.HTTPShouldHandleCookies to NO so that the CBLHTTPLogic will not add the cookies from the shared cookie storage. Also we don’t actually use the shared cookie storage.

#1927
  • Loading branch information
pasin authored Nov 3, 2017
1 parent eda6e4d commit 0a777a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Objective-C/Internal/Replicator/CBLWebSocket.mm
Original file line number Diff line number Diff line change
@@ -116,6 +116,7 @@ - (instancetype) initWithURL: (NSURL*)url c4socket: (C4Socket*)c4socket options:
_options = AllocedDict(options);

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL: url];
request.HTTPShouldHandleCookies = NO;
_logic = [[CBLHTTPLogic alloc] initWithURLRequest: request];
_logic.handleRedirects = YES;

0 comments on commit 0a777a8

Please sign in to comment.