Skip to content

Commit

Permalink
Merge pull request #1551 from quicksilver/update-user-agent
Browse files Browse the repository at this point in the history
Update user agent
  • Loading branch information
skurfer committed Aug 8, 2013
2 parents 3eccf83 + c0fac2e commit ef45473
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Quicksilver/Code-App/QSUpdateController.m
Expand Up @@ -115,6 +115,7 @@ - (QSUpdateCheckResult)checkForUpdates:(BOOL)force {
NSString *checkVersionString = nil;

NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:[self buildUpdateCheckURL] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:20.0];
[theRequest setValue:kQSUserAgent forHTTPHeaderField:@"User-Agent"];

NSData *data = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:nil error:nil];
checkVersionString = [[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease];
Expand Down

0 comments on commit ef45473

Please sign in to comment.