зеркало из https://github.com/nextcloud/cookbook.git
Run prettier on code
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
74605f1a5c
Коммит
5f6f59da67
|
@ -13,7 +13,7 @@ instance.interceptors.request.use((config) => {
|
|||
`Making "${config.method}" request to "${config.url}"`,
|
||||
config
|
||||
)
|
||||
const contentType = config.headers[config.method]['Content-Type']
|
||||
const contentType = config.headers[config.method]["Content-Type"]
|
||||
if (!["application/json", "text/json"].includes(contentType)) {
|
||||
Vue.$log.warn(
|
||||
`Request to "${config.url}" is using Content-Type "${contentType}", not JSON`
|
||||
|
|
Загрузка…
Ссылка в новой задаче