Skip to content

Commit

Permalink
Fixed 10MB limit when uploading theme zips
Browse files Browse the repository at this point in the history
closes #195

- axios' `maxContentLimit` is set to `-1` by default which is not passed through to the underlying `follow-request` library for PUT/POST requests
- setting the limit to `Infinity` allows larger requests to go through OK
  • Loading branch information
kevinansfield committed Jan 15, 2020
1 parent 4c826c3 commit 2c6f5bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/admin-api/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = function GhostAdminAPI(options) {
params,
data,
headers,
maxContentLength: Infinity,
paramsSerializer(params) {
return Object.keys(params).reduce((parts, key) => {
const val = encodeURIComponent([].concat(params[key]).join(','));
Expand Down

0 comments on commit 2c6f5bf

Please sign in to comment.