Skip to content

Conversation

nicolo-ribaudo
Copy link

Mime types are in the form foo/bar;param=value. When checking what type of request we have, we should only check the foo/bar part and not the param=value part.

Fixes #1043

} catch (e) {
server.close();
done(e);
throw e;
Copy link
Author

Choose a reason for hiding this comment

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

This new try-catch is because otherwise the test was just timing out rather than reporting the error.

Copy link
Member

@tunnckoCore tunnckoCore left a comment

Choose a reason for hiding this comment

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

lgtm, I'll include it.

good catch 😅🤷‍♂️

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.

Formidable things that a multipart/form-data request is JSON if the boundary contains the string "json"
2 participants