Skip to content

Commit

Permalink
Case-sensitive matching header key
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Mar 17, 2021
1 parent 83c1f78 commit 8fdea43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func isVuln(r *http.Response) bool {
}

for key, header := range r.Header {
if key == "X-Calculatedbetarget" {
if key == "X-CalculatedBETarget" {
for _, h := range header {
if strings.Contains(h, "localhost") {
return true
Expand Down

0 comments on commit 8fdea43

Please sign in to comment.