Skip to content

Commit

Permalink
πŸ› Fixed body length limit when uploading themes (#422)
Browse files Browse the repository at this point in the history
refs #195
refs axios/axios#2781

- When large theme files are uploaded to the server they sometimes fail due to a body limit error. This limit was introduced in axios http library recently. The change is similar to the one introduced in #195 for the content size
  • Loading branch information
AWaselnuk committed Apr 18, 2022
1 parent ae39516 commit ded5a1f
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 @@ -57,6 +57,7 @@ module.exports = function GhostAdminAPI(options) {
data,
headers,
maxContentLength: Infinity,
maxBodyLength: Infinity,
paramsSerializer(parameters) {
return Object.keys(parameters).reduce((parts, key) => {
const val = encodeURIComponent([].concat(parameters[key]).join(','));
Expand Down

0 comments on commit ded5a1f

Please sign in to comment.