Updated User-Agent

The User-Agent was still set from an other app I copied some code from
This commit is contained in:
Scharel 2018-10-17 09:41:09 +02:00 committed by GitHub
parent dd3452bcd2
commit e768e3d107
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ Item {
var apiReq = new XMLHttpRequest
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("Content-Type", "application/json");
apiReq.setRequestHeader("Authorization", "Basic " + Qt.btoa(appSettings.username + ":" + appSettings.password))