Skip to content

Commit

Permalink
fix wrong separator in server-side encoding
Browse files Browse the repository at this point in the history
Signed-off-by: Paul-Elliot <peada@free.fr>
  • Loading branch information
panglesd authored and dinosaure committed Nov 20, 2023
1 parent 388fbc7 commit 8f60787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/not-so-smart/protocol.ml
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ module Decoder = struct
if Sub.is_empty v then return None decoder
else if Sub.is_prefix v ~affix:v_want then (
let v = v |> Sub.with_range ~first:(Sub.length v_want) in
match Sub.cut ~sep:v_zero v with
match Sub.cut ~sep:v_space v with
| None -> fail decoder (`Invalid_want (Sub.to_string v))
| Some (first_want, capabilities) ->
let first_want = Sub.to_string first_want in
Expand Down

0 comments on commit 8f60787

Please sign in to comment.