mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(axios): correctly encode urls [BE-11648] (#517)
fix(edgegroup): nil pointer defer
This commit is contained in:
parent
7e5db1f55e
commit
4c1e80ff58
4 changed files with 154 additions and 8 deletions
|
@ -12,6 +12,7 @@ import {
|
|||
} from 'axios-cache-interceptor';
|
||||
import { loadProgressBar } from 'axios-progress-bar';
|
||||
import 'axios-progress-bar/dist/nprogress.css';
|
||||
import qs from 'qs';
|
||||
|
||||
import PortainerError from '@/portainer/error';
|
||||
|
||||
|
@ -53,6 +54,9 @@ function headerInterpreter(
|
|||
const axios = Axios.create({
|
||||
baseURL: 'api',
|
||||
maxDockerAPIVersion: MAX_DOCKER_API_VERSION,
|
||||
paramsSerializer: {
|
||||
serialize: (params) => qs.stringify(params, { arrayFormat: 'brackets' }),
|
||||
},
|
||||
});
|
||||
axios.interceptors.request.use((req) => {
|
||||
dispatchCacheRefreshEventIfNeeded(req);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue