MOBILE-3401: Set custom User-Agent for http plugin
parent
f63b6187fb
commit
072e44e536
|
@ -158,6 +158,10 @@ export class CoreWSProvider {
|
|||
protected mimeUtils: CoreMimetypeUtilsProvider,
|
||||
logger: CoreLoggerProvider) {
|
||||
this.logger = logger.getInstance('CoreWSProvider');
|
||||
|
||||
if (this.appProvider.isMobile()) {
|
||||
(<any> cordova).plugin.http.setHeader('User-Agent', navigator.userAgent);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue