Fixed Sparkle user agent string for Sparkle 1.5.

This commit is contained in:
andym committed 2007-12-13 09:27:59 +00:00
1 parent d5495b5c9c
commit ebea00a7f8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@
RSS *feed = [RSS alloc];
@try
{
NSString *userAgent = [NSString stringWithFormat: @"%@/%@ (Mac OS X) Sparkle/1.1", [utilities hostAppName], [utilities hostAppVersion]];
NSString *userAgent = [NSString stringWithFormat: @"%@/%@ (Mac OS X) Sparkle/1.5b1", [utilities hostAppName], [utilities hostAppVersion]];
feed = [feed initWithURL:url normalize:YES userAgent:userAgent];
if (!feed)
+1 -1
View File
@@ -236,7 +236,7 @@
appcastString = [utilities infoValueForKey:SUFeedURLKey];
if (!appcastString) { [NSException raise:@"SUNoFeedURL" format:@"No feed URL is specified in the Info.plist or the user defaults!"]; }
SUAppcast *appcast = [[SUAppcast alloc] init];
SUAppcast *appcast = [[SUAppcast alloc] initWithUtilities:utilities];
[appcast setDelegate:self];
[appcast fetchAppcastFromURL:[NSURL URLWithString:appcastString]];
}