fix #58: white-list of allowed content-types should be removed for iOS

This commit is contained in:
Sefa Ilkimen
2018-01-04 02:05:55 +01:00
parent 73097b9db9
commit 64731a3794
3 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -19,11 +19,12 @@ static BOOL AFErrorOrUnderlyingErrorHasCodeInDomain(NSError *error, NSInteger co
- (instancetype)init {
self = [super init];
if (!self) {
return nil;
}
self.acceptableContentTypes = [NSSet setWithObjects:@"text/plain", @"text/html", @"text/json", @"application/hal+json", @"application/json", @"text/xml", @"application/xml", @"text/css", @"application/javascript", nil];
self.acceptableContentTypes = nil;
return self;
}