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

Commit

Permalink
Merge branch 'master' of github.com:meetup/bazel-s3-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Sep 12, 2018
2 parents bb0befe + 22464b4 commit 0d8e25f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ where

/// Return true if provided authz header matches config
fn authenticated(config: &Config, authz: &[u8]) -> bool {
if authz
.get(..AUTH_PREFIX.len())
.filter(|prefix| prefix == &AUTH_PREFIX)
.is_none()
{
if !authz.starts_with(&AUTH_PREFIX) {
return false;
}
base64::decode(&authz[AUTH_PREFIX.len()..])
Expand Down

0 comments on commit 0d8e25f

Please sign in to comment.