@@ -319,7 +319,7 @@ parseRequest' port (firstLine:otherLines) remoteHost' src = do
319319 let serverName' = takeUntil 58 host -- ':'
320320 -- FIXME isolate takes an Integer instead of Int or Int64. If this is a
321321 -- performance penalty, we may need our own version.
322− rbody <- C.bufferSource $
322+ rbody <- C.prepareSource $
323323 if len == 0
324324 then mempty
325325 else src C.$= CB.isolate len
@@ -335,7 +335,7 @@ parseRequest' port (firstLine:otherLines) remoteHost' src = do
335335 , requestHeaders = heads
336336 , isSecure = False
337337 , remoteHost = remoteHost'
338− , requestBody = rbody
338+ , requestBody = C.Source $ return rbody
339339 , vault = mempty
340340 }
341341