[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct switch content-type #161

Conversation

n14s
Copy link
Contributor
@n14s n14s commented May 22, 2024

In js (a || b) evaluates to a.
In this case that means, that the switch case for the content-type never goes into case: urlencoded || multipart if the value is multipart.

In a case where the code for multiple case values is identical, it's fine to you the fallthrough property of a switch case statement.

case a:
case b:
code

@jonrosner jonrosner merged commit 255ce90 into EsperoTech:nm/add-multipart-form-data May 22, 2024
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.

None yet

2 participants