Skip to content

Commit 14b5977

Browse files
committed
fix: max content length
1 parent b44761a commit 14b5977

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

dist/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ async function getSettings() {
149149
function configureAxios(panelHost, apiKey, proxy) {
150150
axios.defaults.baseURL = panelHost;
151151
axios.defaults.headers.common["Authorization"] = `Bearer ${apiKey}`;
152+
axios.defaults.maxContentLength = Infinity;
153+
axios.defaults.maxBodyLength = Infinity;
152154

153155
if (proxy) {
154156
const [auth, hostPort] = proxy.split("@");

0 commit comments

Comments
 (0)