@@ -488,9 +488,10 @@ takeUntil c bs =
488488parseFirst :: ByteString
489489 -> ResourceT IO (ByteString, ByteString, ByteString, H.HttpVersion)
490490parseFirst s =
491− case filter (not . S.null) $ S.split 32 s of -- ' '
492− [method, query, http'] -> do
493− let (hfirst, hsecond) = B.splitAt 5 http'
491+ case filter (not . S.null) $ S.splitWith (\c -> c == 32 || c == 9) s of -- ' '
492+ (method:query:http'') -> do
493+ let http' = S.concat http''
494+ (hfirst, hsecond) = B.splitAt 5 http'
494495 if hfirst == "HTTP/"
495496 then let (rpath, qstring) = S.breakByte 63 query -- '?'
496497 hv =