Skip to content

Commit 96af6fa

Browse files
authored
fix(http): xcode 16.3, ios 18.4 urlsession change (#10727)
1 parent 454223c commit 96af6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/http/http-request/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const osVersion = currentDevice.systemVersion;
1919
const GET = 'GET';
2020
const USER_AGENT_HEADER = 'User-Agent';
2121
const USER_AGENT = `Mozilla/5.0 (i${device}; CPU OS ${osVersion.replace('.', '_')} like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/${osVersion} Mobile/10A5355d Safari/8536.25`;
22-
const sessionConfig = NSURLSessionConfiguration.defaultSessionConfiguration;
22+
const sessionConfig = NSURLSessionConfiguration.ephemeralSessionConfiguration;
2323
const queue = NSOperationQueue.mainQueue;
2424

2525
function parseJSON(source: string): any {

0 commit comments

Comments
 (0)