Remove version string from feed url

This commit is contained in:
probablycorey 2014-01-31 16:14:16 -08:00
parent a59756485e
commit a8913f5ea0

View file

@ -35,9 +35,7 @@ void RelaunchToInstallUpdate() {
void AutoUpdater::SetFeedURL(const std::string& feed) {
if (g_updater == nil) {
// Initialize the SQRLUpdater.
NSString *version = NSBundle.mainBundle.sqrl_bundleVersion;
NSString *urlString = [NSString stringWithFormat:@"%@?version=%@", base::SysUTF8ToNSString(feed), version];
NSURL* url = [NSURL URLWithString:urlString];
NSURL* url = [NSURL URLWithString:base::SysUTF8ToNSString(feed)];
NSURLRequest* urlRequest = [NSURLRequest requestWithURL:url];
g_updater = [[SQRLUpdater alloc] initWithUpdateRequest:urlRequest];