rm headers_lib
This commit is contained in:
parent
75759afe69
commit
4e707b080a
7 changed files with 29 additions and 149 deletions
|
|
@ -204,11 +204,4 @@ let ed25519 s =
|
|||
|> Result.map_error (fun e -> Fmt.str "%a" Mirage_crypto_ec.pp_error e)
|
||||
|> unwrap
|
||||
|
||||
let etag s =
|
||||
match Headers_lib.Etag.parse s with
|
||||
| Ok etag -> etag
|
||||
| Error e -> (
|
||||
(* retry with quotes if needed *)
|
||||
match Headers_lib.Etag.parse (Fmt.str "\"%s\"" s) with
|
||||
| Ok etag -> etag
|
||||
| Error _ -> fail "could not parse etag `%s`: %s" s e)
|
||||
let etag s = s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue