From ebea00a7f841d73203fbc42da74fc56a5d80736e Mon Sep 17 00:00:00 2001 From: andym Date: Thu, 13 Dec 2007 09:27:59 +0000 Subject: [PATCH] Fixed Sparkle user agent string for Sparkle 1.5. --- SUAppcast.m | 2 +- SUUpdater.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SUAppcast.m b/SUAppcast.m index ae9c5884..5ba67782 100644 --- a/SUAppcast.m +++ b/SUAppcast.m @@ -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) diff --git a/SUUpdater.m b/SUUpdater.m index bdfa26f9..6a79eca5 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -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]]; }