Permalink
Browse files

Fixed a stupid mistake that prevented my fix for parameterized URLs f…

…rom actually functioning.
  • Loading branch information...
1 parent ec8fcbc commit 444b0a928dd898d791e6ade7eb0ed4ed0aafced1 @andymatuschak andymatuschak committed Aug 17, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 SUUpdater.m
View
@@ -326,7 +326,7 @@ - (NSURL *)parameterizedFeedURL
NSString *separatorCharacter = @"?";
if ([baseFeedURL query])
separatorCharacter = @"&"; // In case the URL is already http://foo.org/baz.xml?bat=4
- NSString *appcastStringWithProfile = [NSString stringWithFormat:@"%@?%@", [baseFeedURL absoluteString], [parameterStrings componentsJoinedByString:@"&"]];
+ NSString *appcastStringWithProfile = [NSString stringWithFormat:@"%@%@%@", [baseFeedURL absoluteString], separatorCharacter, [parameterStrings componentsJoinedByString:@"&"]];
// Clean it up so it's a valid URL
return [NSURL URLWithString:[appcastStringWithProfile stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];

0 comments on commit 444b0a9

Please sign in to comment.