Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tonic/src/transport/service/grpc_timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fn try_parse_grpc_timeout(
.and_then(|s| if s.is_empty() { Err(val) } else { Ok(s) })?
// `HeaderValue::to_str` only returns `Ok` if the header contains ASCII so this
// `split_at` will never panic from trying to split in the middle of a character.
// See https://docs.rs/http/0.2.4/http/header/struct.HeaderValue.html#method.to_str
// See https://docs.rs/http/1/http/header/struct.HeaderValue.html#method.to_str
//
// `len - 1` also wont panic since we just checked `s.is_empty`.
.split_at(val.len() - 1);
Expand Down