Bugfix for setting headers properly, not just key-value pairs on the class

This commit is contained in:
Mattias Gunneras committed 2015-02-25 10:56:56 -05:00
1 parent 0a6de47783
commit 1db20c4882
1 file changed
+4 -1
+4 -1
View File
@@ -57,7 +57,10 @@
}
if (self.httpHeaders) {
[request setValuesForKeysWithDictionary:self.httpHeaders];
for (NSString *key in self.httpHeaders) {
id value = [self.httpHeaders objectForKey:key];
[request setValue:value forHTTPHeaderField:key];
}
}
[request setValue:@"application/rss+xml,*/*;q=0.1" forHTTPHeaderField:@"Accept"];