We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf75458 commit b509838Copy full SHA for b509838
plugins/builds.js
@@ -105,8 +105,11 @@ exports.plugin = {
105
}
106
});
107
108
- // For text/plain payload, upload it as Buffer
109
- if (contents.h['content-type'] === 'text/plain') {
+ // For text/plain payload or application/zip, upload it as Buffer
+ // Otherwise, catbox-s3 will try to JSON.stringify (https://github.com/fhemberger/catbox-s3/blob/master/lib/index.js#L236)
110
+ // and might create issue on large payload
111
+ if (contents.h['content-type'] === 'text/plain' ||
112
+ contents.h['content-type'] === 'application/zip') {
113
value = contents.c;
114
115
0 commit comments