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

Don't consume the request body twice #1

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

Gabriella439
Copy link
Collaborator

This fixes the following issue with wai:

haskell-servant/servant#1120 (comment)

Basically, if you consume the request body once (in the middleware) then it's no longer available for the actual handler. The solution is to "push back" the request body onto the Request, which is extremely hacky but works.

This fixes the following issue with `wai`:

haskell-servant/servant#1120 (comment)

Basically, if you consume the request body once (in the middleware)
then it's no longer available for the actual handler.  The solution is
to "push back" the request body onto the `Request`, which is extremely
hacky but works.
@Gabriella439 Gabriella439 merged commit 17738ee into main Apr 15, 2024
@Gabriella439 Gabriella439 deleted the gabriella/fix_ada_middleware branch April 15, 2024 23:32
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.

2 participants