mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
feat cohttp: set 'accept' header as well
This commit is contained in:
parent
9974d6a0b6
commit
b2ef68536d
1 changed files with 6 additions and 1 deletions
|
|
@ -106,7 +106,12 @@ end = struct
|
||||||
let open Cohttp in
|
let open Cohttp in
|
||||||
let headers = Header.(add_list (init ()) (Config.Env.get_headers ())) in
|
let headers = Header.(add_list (init ()) (Config.Env.get_headers ())) in
|
||||||
let headers =
|
let headers =
|
||||||
Header.(add headers "Content-Type" "application/x-protobuf")
|
Header.(
|
||||||
|
add_list headers
|
||||||
|
[
|
||||||
|
"Content-Type", "application/x-protobuf";
|
||||||
|
"Accept", "application/x-protobuf";
|
||||||
|
])
|
||||||
in
|
in
|
||||||
|
|
||||||
let body = Cohttp_lwt.Body.of_string bod in
|
let body = Cohttp_lwt.Body.of_string bod in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue