Skip to content

Conversation

@alanef
Copy link

@alanef alanef commented Sep 2, 2025

The SDK was only accepting 200 as success, but 201 (Created) and 204 (No Content) are also valid success responses, especially for POST/PUT/DELETE operations.

alanef and others added 3 commits September 2, 2025 09:28
The SDK was only accepting 200 as success, but 201 (Created) and 204 (No Content) are also valid success responses, especially for POST/PUT/DELETE operations.
Add missing blank line (EOL) after Content-Type header in multipart
form data. Without this, the MIME type and file content were being
concatenated, causing "application/zipPK..." instead of "application/zip".

This fixes the "file must be a Zip file" error when deploying to Freemius.
When downloading .zip files, set encoding: null in request options
to return a Buffer instead of parsing as UTF-8 string.
This prevents binary data corruption.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant