lowercase header names in http2
This commit is contained in:
parent
f0eec8add4
commit
87457cda40
1 changed files with 2 additions and 1 deletions
|
@ -204,7 +204,8 @@ let single_http_1_1_request
|
|||
; finished
|
||||
|
||||
let prepare_h2_headers headers host user_pass body_length =
|
||||
let headers = H2.Headers.of_list headers in
|
||||
let headers = List.rev_map (fun (k, v) -> (String.lowercase_ascii k, v)) headers in
|
||||
let headers = H2.Headers.of_rev_list headers in
|
||||
let add hdr = H2.Headers.add_unless_exists hdr ?sensitive:None in
|
||||
let headers = add headers ":authority" host in
|
||||
let headers =
|
||||
|
|
Loading…
Reference in a new issue