Skip to content

Commit 97d58df

Browse files
jokemanfireCopilot
andauthored
Update crates/rmcp/src/transport/common/http_header.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 15720e0 commit 97d58df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/rmcp/src/transport/common/http_header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub(crate) fn validate_custom_header(name: &http::HeaderName) -> Result<(), Stri
3737

3838
/// Extracts the `scope=` parameter from a `WWW-Authenticate` header value.
3939
/// Handles both quoted (`scope="files:read files:write"`) and unquoted (`scope=read:data`) forms.
40-
#[allow(dead_code)]
40+
#[cfg(feature = "client-side-sse")]
4141
pub(crate) fn extract_scope_from_header(header: &str) -> Option<String> {
4242
let header_lowercase = header.to_ascii_lowercase();
4343
let scope_key = "scope=";

0 commit comments

Comments
 (0)