mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-07 11:45:36 -05:00
fix: parse transfer-encoding properly
This commit is contained in:
parent
65f8f957bd
commit
e8ed0afe47
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ let accept_deflate (req:_ S.Request.t) =
|
||||||
| None -> false
|
| None -> false
|
||||||
|
|
||||||
let has_deflate s =
|
let has_deflate s =
|
||||||
try Scanf.sscanf s "deflate; %s" (fun _ -> true)
|
try Scanf.sscanf s "deflate, %s" (fun _ -> true)
|
||||||
with _ -> false
|
with _ -> false
|
||||||
|
|
||||||
let cb_decode_compressed_stream ~buf_size (req:unit S.Request.t) : _ option =
|
let cb_decode_compressed_stream ~buf_size (req:unit S.Request.t) : _ option =
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue