|
@@ -106,9 +106,8 @@ class NCLoginWeb: UIViewController {
|
|
|
|
|
|
let language = NSLocale.preferredLanguages[0] as String
|
|
|
var request = URLRequest(url: url)
|
|
|
- let deviceName = UIDevice.current.name
|
|
|
- let userAgent = deviceName + " " + "(iOS Files)"
|
|
|
-
|
|
|
+ let userAgent = CCUtility.getUserAgent()
|
|
|
+
|
|
|
request.addValue("true", forHTTPHeaderField: "OCS-APIRequest")
|
|
|
request.addValue(language, forHTTPHeaderField: "Accept-Language")
|
|
|
|