Skip to content

Commit

Permalink
Grpc-lwt: fetch status code from response header
Browse files Browse the repository at this point in the history
  • Loading branch information
acerone85 committed May 4, 2024
1 parent e066812 commit cb28ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grpc-lwt/client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let call ~service ~rpc ?(scheme = "https") ~handler ~(do_request : do_request)
match response.status with
| `OK ->
let+ status =
match H2.Headers.get headers "grpc-status" with
match H2.Headers.get response.headers "grpc-status" with
| Some _ -> Lwt.return (Grpc.Status.extract_status headers)
| None -> status
in
Expand Down

0 comments on commit cb28ccf

Please sign in to comment.