Skip to content

Commit 1a7a61d

Browse files
authored
chore(transport): Update url to http crate document (#2173)
1 parent a2769c4 commit 1a7a61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tonic/src/transport/service/grpc_timeout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ fn try_parse_grpc_timeout(
113113
.and_then(|s| if s.is_empty() { Err(val) } else { Ok(s) })?
114114
// `HeaderValue::to_str` only returns `Ok` if the header contains ASCII so this
115115
// `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
116+
// See https://docs.rs/http/1/http/header/struct.HeaderValue.html#method.to_str
117117
//
118118
// `len - 1` also wont panic since we just checked `s.is_empty`.
119119
.split_at(val.len() - 1);

0 commit comments

Comments
 (0)