mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -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
|
||||
|
||||
let has_deflate s =
|
||||
try Scanf.sscanf s "deflate; %s" (fun _ -> true)
|
||||
try Scanf.sscanf s "deflate, %s" (fun _ -> true)
|
||||
with _ -> false
|
||||
|
||||
let cb_decode_compressed_stream ~buf_size (req:unit S.Request.t) : _ option =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue