mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
Fixed Sparkle user agent string for Sparkle 1.5.
This commit is contained in:
1 parent
d5495b5c9c
commit
ebea00a7f8
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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]];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user