We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2769c4 commit 1a7a61dCopy full SHA for 1a7a61d
tonic/src/transport/service/grpc_timeout.rs
@@ -113,7 +113,7 @@ fn try_parse_grpc_timeout(
113
.and_then(|s| if s.is_empty() { Err(val) } else { Ok(s) })?
114
// `HeaderValue::to_str` only returns `Ok` if the header contains ASCII so this
115
// `split_at` will never panic from trying to split in the middle of a character.
116
- // 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
117
//
118
// `len - 1` also wont panic since we just checked `s.is_empty`.
119
.split_at(val.len() - 1);
0 commit comments