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: handle missing x-response-json #15

Merged
merged 4 commits into from
Oct 23, 2023

Conversation

notnmeyer
Copy link
Owner

@notnmeyer notnmeyer commented Oct 23, 2023

  • now returns 400 when x-response-json is unset, rather than panicking 😅
  • refactored the header validation logic so its not order-dependent and overall just easier to follow

handle missing x-response-json
simplify handler logic
these dont need to be predeclared
rm obvious comments
@notnmeyer notnmeyer merged commit 30902aa into main Oct 23, 2023
1 check passed
@notnmeyer notnmeyer deleted the fix/handle-missing-x-response-json branch October 23, 2023 21:57
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