forked from organicmaps/organicmaps
[iOS] Fixed user-agent in CatalogWebView
This commit is contained in:
parent
a3c791be14
commit
018e684b77
1 changed files with 1 additions and 1 deletions
|
@ -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]];
|
||||
|
|
Loading…
Add table
Reference in a new issue