Skip to content

Commit

Permalink
chore(web): Remove byte char slice (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jan 23, 2025
1 parent fe9613c commit 1777e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic-web/src/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ fn decode_trailers_frame(mut buf: Bytes) -> Result<Option<HeaderMap>, Status> {
.split(|b| b == &b'\r')
.next()
.ok_or_else(|| Status::internal("trailers was not escaped"))?
.strip_prefix(&[b' '])
.strip_prefix(b" ")
.unwrap_or(value);

let header_key = HeaderName::try_from(key)
Expand Down

0 comments on commit 1777e27

Please sign in to comment.