mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
compat fix
This commit is contained in:
parent
b97c8abf80
commit
7eaaf432e4
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ module Reader = struct
|
|||
self.state <- Close;
|
||||
let body = read_body_to_string self in
|
||||
if String.length body >= 2 then (
|
||||
let errcode = String.get_int16_be body 0 in
|
||||
let errcode = Bytes.get_int16_be (Bytes.unsafe_of_string body) 0 in
|
||||
Log.info (fun k ->
|
||||
k "client send 'close' with errcode=%d, message=%S" errcode
|
||||
(String.sub body 2 (String.length body - 2)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue