mirror of
https://github.com/typeable/wai.git
synced 2024-12-27 08:05:37 +03:00
[wai-extra] Set requestBodyLength
to the actual length of the post body
This commit is contained in:
parent
e900d888ba
commit
699de9736f
@ -1,6 +1,6 @@
|
||||
## 3.0.20.1
|
||||
|
||||
* Set `ChunkedBody` for `srequest` [#654](https://github.com/yesodweb/wai/pull/654)
|
||||
* Set `requestBodyLength` for `srequest` [#654](https://github.com/yesodweb/wai/pull/654)
|
||||
|
||||
## 3.0.20.0
|
||||
|
||||
|
@ -176,7 +176,7 @@ srequest (SRequest req bod) = do
|
||||
case bss of
|
||||
[] -> ([], S.empty)
|
||||
x:y -> (y, x)
|
||||
, requestBodyLength = ChunkedBody
|
||||
, requestBodyLength = KnownLength $ fromIntegral $ L.length bod
|
||||
}
|
||||
req'' <- addCookiesToRequest req'
|
||||
response <- liftIO $ do
|
||||
|
Loading…
Reference in New Issue
Block a user