You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-09 04:22:45 +03:00
Fix a reference in a doc comment
This commit is contained in:
@@ -22,8 +22,8 @@ use tracing_opentelemetry::OpenTelemetrySpanExt;
|
|||||||
pub struct HeaderInjector<'a>(pub &'a mut http::HeaderMap);
|
pub struct HeaderInjector<'a>(pub &'a mut http::HeaderMap);
|
||||||
|
|
||||||
impl<'a> Injector for HeaderInjector<'a> {
|
impl<'a> Injector for HeaderInjector<'a> {
|
||||||
/// Set a key and value in the [`HeaderMap`]. Does nothing if the key or
|
/// Set a key and value in the [`http::HeaderMap`]. Does nothing if the key
|
||||||
/// value are not valid inputs.
|
/// or value are not valid inputs.
|
||||||
fn set(&mut self, key: &str, value: String) {
|
fn set(&mut self, key: &str, value: String) {
|
||||||
if let Ok(name) = http::header::HeaderName::from_bytes(key.as_bytes()) {
|
if let Ok(name) = http::header::HeaderName::from_bytes(key.as_bytes()) {
|
||||||
if let Ok(val) = http::header::HeaderValue::from_str(&value) {
|
if let Ok(val) = http::header::HeaderValue::from_str(&value) {
|
||||||
|
Reference in New Issue
Block a user