-
Notifications
You must be signed in to change notification settings - Fork 133
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
Request body is preserved across 'next' calls #147 #308
Request body is preserved across 'next' calls #147 #308
Conversation
ocramz
commented
Sep 25, 2023
•
edited
Loading
edited
- added test case to confirm issue is still there
- adapted patch by @thomasjm https://github.com/scotty-web/scotty/pull/206/files to handle max body size parameter
- clarify imports in a few places
@RyanGlScott Hi, github suggested you as a reviewer :) the original bug (#147 ) is fixed, but CI fails due to an unrelated test: an exception raised by a too large request body is uncaught, which I find very puzzling since I didn't modify exception behaviour in this PR. Thanks for all pointers. |
@@ -97,6 +97,14 @@ spec = do | |||
it "returns 500 on exceptions" $ do | |||
get "/" `shouldRespondWith` "<h1>500 Internal Server Error</h1>divide by zero" {matchStatus = 500} | |||
|
|||
describe "setMaxRequestBodySize" $ do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this test to appear under the "ScottyM" section