Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Dec 1, 2023
1 parent 11a8dab commit de2c2b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/broad/igv/util/HttpUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ public void setAccessToken(String token, String host) {
host = host.replace("*", ".*");
}

// If new pattern matches existing keys replace them
Pattern newPattern = Pattern.compile(host, Pattern.CASE_INSENSITIVE);
this.accessTokens.add(new Pair<>(newPattern, token));
}


/**
* Return an access token, if any, from the access token cache.
* Return an access token, if any, from the access token cache. The queue is iterated
* in reverse order so the latest match is returned.
*
* @param url
* @return
Expand Down

0 comments on commit de2c2b7

Please sign in to comment.