fix: max content length

This commit is contained in:
Emmanuel Lampe 2023-09-28 10:49:44 +02:00
parent b44761a220
commit 14b59772eb
No known key found for this signature in database
GPG key ID: 2E080FC227CB0AE7
3 changed files with 5 additions and 1 deletions

2
dist/index.js vendored
View file

@ -10619,6 +10619,8 @@ async function getSettings() {
function configureAxios(panelHost, apiKey, proxy) {
axios.defaults.baseURL = panelHost;
axios.defaults.headers.common["Authorization"] = `Bearer ${apiKey}`;
axios.defaults.maxContentLength = Infinity;
axios.defaults.maxBodyLength = Infinity;
if (proxy) {
const [auth, hostPort] = proxy.split("@");

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -149,6 +149,8 @@ async function getSettings() {
function configureAxios(panelHost, apiKey, proxy) {
axios.defaults.baseURL = panelHost;
axios.defaults.headers.common["Authorization"] = `Bearer ${apiKey}`;
axios.defaults.maxContentLength = Infinity;
axios.defaults.maxBodyLength = Infinity;
if (proxy) {
const [auth, hostPort] = proxy.split("@");