Justin Mecham
Committed by Ben Copsey

Use [NSBundle bundleForClass:self] when constructing the User-Agent header so th…

…at it gets the name of the correct bundle, such as in the case of a Preference Pane.
... ... @@ -3626,8 +3626,8 @@ static NSOperationQueue *sharedQueue = nil;
+ (NSString *)defaultUserAgentString
{
NSBundle *bundle = [NSBundle mainBundle];
NSBundle *bundle = [NSBundle bundleForClass:[self class]];
// Attempt to find a name for this application
NSString *appName = [bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"];
if (!appName) {
... ...