Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Fix test by prepending values added later
Browse files Browse the repository at this point in the history
  • Loading branch information
redraw-dawn committed Jul 7, 2023
1 parent 5cd53b1 commit a94f6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth_middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn extract_scopes_from_headers(headers: &HeaderMap) -> BTreeMap<String, Vec<Stri

if let Ok(value) = v.to_str() {
let mut existing_scopes = scopes.get_mut(&service).unwrap_or(&mut vec![]).to_vec();
existing_scopes.push(value.to_string());
existing_scopes.splice(..0, [value.to_string()]);

scopes.insert(service, existing_scopes);
};
Expand Down

0 comments on commit a94f6e1

Please sign in to comment.