Skip to content

Conversation

@brettstack
Copy link
Collaborator

fix: decodes base64 requests (fixes #64); added form to index view to showcase POST/PUT; move example instructions to example/README.md; update example to Node.js 6.10; added app.local.js to easily run local express

… showcase POST/PUT; move example instructions to example/README.md; update example to Node.js 6.10; added app.local.js to easily run local express
Copy link
Contributor

@kahouieong kahouieong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider to bump the version up

return params.contentTypeHeader ? params.contentTypeHeader.split(';')[0] : ''
}

function isContentTypeBinaryMimeType(params) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we support wildcard here since API Gateway supports that

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean major version bump? I considered this, but this is a bug fix that we want applied to version 2. However, there is a possibility to break anyone who fixed this on their Express side (e.g. via middleware).

Regardless of which we choose, the version bump will be a separate commit.

Copy link
Collaborator Author

@brettstack brettstack May 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding wildcard support: good point, but let's leave that as a separate issue #70

@brettstack brettstack merged commit c5fa5c2 into master May 11, 2017
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.

Why is application/json listed as a binary media type in example project?

4 participants