Skip to content

Commit

Permalink
fix(tone): Terminology correction
Browse files Browse the repository at this point in the history
I'd like us to set a good example and tone by using better
terminology wherever possible.
  • Loading branch information
ajordens committed Jun 16, 2020
1 parent d65de78 commit a6daa15
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import org.springframework.stereotype.Service
class WebhookService {

// These headers create a security vulnerability.
static final List<String> headerBlacklist = [
static final List<String> headerDenyList = [
"X-SPINNAKER-USER",
"X-SPINNAKER-ACCOUNT",
"X-SPINNAKER-USER-ORIGIN",
Expand Down Expand Up @@ -80,7 +80,7 @@ class WebhookService {
private static HttpHeaders buildHttpHeaders(Object customHeaders) {
HttpHeaders headers = new HttpHeaders()
customHeaders?.each { key, value ->
if (headerBlacklist.contains(key.toUpperCase())) {
if (headerDenyList.contains(key.toUpperCase())) {
return;
}
if (value instanceof List<String>) {
Expand Down

0 comments on commit a6daa15

Please sign in to comment.