OrenGitHub / dhscanner

free as in speech container scanner
https://orengithub.github.io/
1 stars 0 forks source link

Request body size for codegen is too big #66

Closed OrenGitHub closed 2 weeks ago

OrenGitHub commented 2 weeks ago
Request body too large to be processed. The maximum size is 2097152 bytes; your request body was 4808331 bytes. If you're the developer of this site, you can configure the maximum length with the `maximumContentLength` or `maximumContentLengthIO` function on the Yesod typeclass.
OrenGitHub commented 2 weeks ago

It's in the Yesod definitions:

PS C:\Users\tuna_\GitHub\dhscanner\dhscanner.codegen> git diff
diff --git a/src/Main.hs b/src/Main.hs
index 1512284..c16c569 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -28,7 +28,7 @@ mkYesod "App" [parseRoutes|
 /healthcheck HealthcheckR GET
 |]

-instance Yesod App
+instance Yesod App where maximumContentLength = \app -> (\anyRouteReally -> Just 8000000)