[iOS] Fixed user-agent in CatalogWebView

This commit is contained in:
Alexander Boriskov 2019-11-15 14:33:13 +03:00 committed by Aleksey Belousov
parent a3c791be14
commit 018e684b77

View file

@ -90,6 +90,7 @@
self.webView.backgroundColor = UIColor.whiteColor;
self.webView.allowsLinkPreview = NO;
[self.webView setCustomUserAgent:[MWMFrameworkHelper userAgent]];
[self performURLRequest];
}
@ -110,7 +111,6 @@
[request setValue:headers[header] forHTTPHeaderField:header];
}
[request setValue:[MWMFrameworkHelper userAgent] forHTTPHeaderField:@"User-Agent"];
if (self.shouldAddAccessToken)
{
NSString *authHeader = [NSString stringWithFormat:@"Bearer %@", [MWMFrameworkHelper userAccessToken]];