Skip to content

Commit 3982315

Browse files
generatedunixname1436046941577307meta-codesync[bot]
authored andcommitted
fbsource//xplat/js/react-native-github:RCTNetworkApple (#56560)
Summary: Pull Request resolved: #56560 Reviewed By: javache Differential Revision: D101968768 fbshipit-source-id: fa2c4bdf90466dd0c3d3f2992d3aa6c327719379
1 parent 5182d4f commit 3982315

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/Libraries/Network/RCTNetworking.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ - (RCTURLRequestCancellationBlock)buildRequest:(NSDictionary<NSString *, id> *)q
319319
request.HTTPMethod = [RCTConvert NSString:RCTNilIfNull(query[@"method"])].uppercaseString ?: @"GET";
320320
request.HTTPShouldHandleCookies = [RCTConvert BOOL:query[@"withCredentials"]];
321321

322-
if (request.HTTPShouldHandleCookies == YES) {
322+
if (request.HTTPShouldHandleCookies) {
323323
// Load and set the cookie header.
324324
NSArray<NSHTTPCookie *> *cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookiesForURL:URL];
325325
request.allHTTPHeaderFields = [NSHTTPCookie requestHeaderFieldsWithCookies:cookies];

0 commit comments

Comments
 (0)