mirror of
https://github.com/nextcloud/server.git
synced 2026-02-28 04:20:37 -05:00
fix(settings): Use axios directly for health check to preven URL sanitizing
When using Apache with `DirectorySlash` it will respond with 301 and the URL with trailing slash. But when using traefik as the reverse proxy it can not rewrite redirects, this leads to the problem that the Apache response is using HTTP in the redirect but the real server (traefik) is only listening on HTTPS. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
631ceaf6b0
commit
f1f265894e
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
import api from './api.js'
|
||||
import Vue from 'vue'
|
||||
import axios from '@nextcloud/axios'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
import { showError, showInfo } from '@nextcloud/dialogs'
|
||||
import { loadState } from '@nextcloud/initial-state'
|
||||
|
|
@ -178,7 +179,7 @@ const actions = {
|
|||
})
|
||||
|
||||
// check for server health
|
||||
return api.get(generateUrl('apps/files/'))
|
||||
return axios.get(generateUrl('apps/files/'))
|
||||
.then(() => {
|
||||
if (response.data.update_required) {
|
||||
showInfo(
|
||||
|
|
|
|||
Loading…
Reference in a new issue