From 1db20c4882b0a0009c849055bfa7b2059f9c2018 Mon Sep 17 00:00:00 2001 From: Mattias Gunneras Date: Wed, 25 Feb 2015 10:56:56 -0500 Subject: [PATCH] Bugfix for setting headers properly, not just key-value pairs on the class --- Sparkle/SUAppcast.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index e6bf80ac..a075200e 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -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"];