Skip to content

Commit 1777e27

Browse files
authored
chore(web): Remove byte char slice (#2158)
1 parent fe9613c commit 1777e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tonic-web/src/call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ fn decode_trailers_frame(mut buf: Bytes) -> Result<Option<HeaderMap>, Status> {
430430
.split(|b| b == &b'\r')
431431
.next()
432432
.ok_or_else(|| Status::internal("trailers was not escaped"))?
433-
.strip_prefix(&[b' '])
433+
.strip_prefix(b" ")
434434
.unwrap_or(value);
435435

436436
let header_key = HeaderName::try_from(key)

0 commit comments

Comments
 (0)