mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Bugfix for setting headers properly, not just key-value pairs on the class
This commit is contained in:
1 parent
0a6de47783
commit
1db20c4882
1 file changed
+4
-1
Vendored
+4
-1
@@ -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"];
|
||||
|
||||
Reference in new issue
Block a user