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