Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-06-22 21:43:58 +0300
committerdartcafe <github@dartcafe.de>2022-06-22 21:43:58 +0300
commitd52eda2071eccaaf7a729d133392ce8d91265eac (patch)
treec6b1c2f6b5b585b02435b7fb92b3a19d249601f4 /src/js/mixins/watchPolls.js
parent717d75772558704ff18f0020dd905ab59d9c806b (diff)
Accept: 'application/json' in http headersref/watch-error-handling
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/mixins/watchPolls.js')
-rw-r--r--src/js/mixins/watchPolls.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js/mixins/watchPolls.js b/src/js/mixins/watchPolls.js
index 65f486c1..aadfcbfb 100644
--- a/src/js/mixins/watchPolls.js
+++ b/src/js/mixins/watchPolls.js
@@ -128,6 +128,7 @@ export const watchPolls = {
return await axios.get(generateUrl(this.endPoint), {
params: { offset: this.lastUpdated },
cancelToken: this.cancelToken.token,
+ headers: { Accept: 'application/json' },
})
},