We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1961e5e commit efecf79Copy full SHA for efecf79
src/https.ios.ts
@@ -137,8 +137,7 @@ export function request(opts: Https.HttpsRequestOptions): Promise<Https.HttpsRes
137
return new Promise((resolve, reject) => {
138
try {
139
const manager = AFHTTPSessionManager.alloc().initWithBaseURL(NSURL.URLWithString(opts.url));
140
-
141
- let contentType = (<string>opts.headers['Content-Type']).substring(0, 16);
+ const contentType = (<string>opts.headers['Content-Type']).substring(0, 16);
142
if (opts.headers && contentType === 'application/json') {
143
manager.requestSerializer = AFJSONRequestSerializer.serializer();
144
manager.responseSerializer = AFJSONResponseSerializer.serializerWithReadingOptions(NSJSONReadingOptions.AllowFragments);
0 commit comments