EsperoTech / yaade

Yaade is an open-source, self-hosted, collaborative API development environment.
MIT License
1.56k stars 68 forks source link

fix: correct switch content-type #161

Closed n14s closed 4 months ago

n14s commented 4 months ago

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