scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.72k stars 134 forks source link

Request body is preserved across 'next' calls #147 #308

Closed ocramz closed 1 year ago

ocramz commented 1 year ago
  1. added test case to confirm issue is still there
  2. adapted patch by @thomasjm https://github.com/scotty-web/scotty/pull/206/files to handle max body size parameter
  3. clarify imports in a few places
ocramz commented 1 year ago

@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.