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 e77b9b2 commit 83d2aacCopy full SHA for 83d2aac
src/https.ios.ts
@@ -137,9 +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
- //const contentType = (<any>opts.headers['Content-Type']).substring(0, 16);
141
if (opts.headers && (<any>opts.headers['Content-Type']).substring(0, 16) === 'application/json') {
142
- console.log(opts.headers['Content-Type'])
143
manager.requestSerializer = AFJSONRequestSerializer.serializer();
144
manager.responseSerializer = AFJSONResponseSerializer.serializerWithReadingOptions(NSJSONReadingOptions.AllowFragments);
145
} else {
0 commit comments