Updated User-Agent
The User-Agent was still set from an other app I copied some code from
This commit is contained in:
parent
dd3452bcd2
commit
e768e3d107
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ Item {
|
||||||
|
|
||||||
var apiReq = new XMLHttpRequest
|
var apiReq = new XMLHttpRequest
|
||||||
apiReq.open(method, appSettings.server + endpoint, true)
|
apiReq.open(method, appSettings.server + endpoint, true)
|
||||||
apiReq.setRequestHeader('User-Agent', 'SailfishOS/harbour-lidderbuch')
|
apiReq.setRequestHeader('User-Agent', 'SailfishOS/harbour-nextcloudnotes')
|
||||||
apiReq.setRequestHeader('OCS-APIRequest', 'true')
|
apiReq.setRequestHeader('OCS-APIRequest', 'true')
|
||||||
apiReq.setRequestHeader("Content-Type", "application/json");
|
apiReq.setRequestHeader("Content-Type", "application/json");
|
||||||
apiReq.setRequestHeader("Authorization", "Basic " + Qt.btoa(appSettings.username + ":" + appSettings.password))
|
apiReq.setRequestHeader("Authorization", "Basic " + Qt.btoa(appSettings.username + ":" + appSettings.password))
|
||||||
|
|
Loading…
Reference in a new issue