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

feat: add middleware to check JSON request #43

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

Lapotor
Copy link
Collaborator

@Lapotor Lapotor commented Nov 26, 2023

This commit introduces a new middleware in the API to ensure that incoming requests are in JSON format. The middleware examines the request headers and responds with an appropriate error if the content type is not set to JSON. This enhancement enhances the API's robustness by enforcing a standardized data format, facilitating better handling of requests and improving overall system reliability.

@Lapotor Lapotor added this to the v1.0.0 milestone Nov 26, 2023
@Lapotor Lapotor self-assigned this Nov 26, 2023
Signed-off-by: Valentin Sickert <[email protected]>
Signed-off-by: Valentin Sickert <[email protected]>
@Lapotor Lapotor changed the title WIP: feat: add middleware to check JSON request feat: add middleware to check JSON request Dec 4, 2023
@whyauthentic whyauthentic merged commit 4aef4a6 into main Dec 6, 2023
1 check passed
@whyauthentic whyauthentic deleted the feat/onlyAllowJsonRequest branch December 6, 2023 03:50
@whyauthentic whyauthentic restored the feat/onlyAllowJsonRequest branch December 6, 2023 03:50
@whyauthentic whyauthentic deleted the feat/onlyAllowJsonRequest branch December 6, 2023 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants