Skip to content

Commit

Permalink
chore: rm redundant code has response earlier clause
Browse files Browse the repository at this point in the history
  • Loading branch information
GangGreenTemperTatum committed Jul 19, 2024
1 parent 285d97b commit 002c0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Filter/Proxy/HTTP/HighlightParamMinerTargets.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var response = requestResponse.response();
// If filtering is not applied or the deny list conditions are met, proceed to check content type
if (configNoFilter || filterDenyList) {
// verify that the request is a POST, PUT, or PATCH and that the response is json
if (!requestResponse.hasResponse() || request.method().equals("POST") || request.method().equals("PATCH") || request.method().equals("PUT")) {
if (request.method().equals("POST") || request.method().equals("PATCH") || request.method().equals("PUT")) {
var contentType = response.headerValue("Content-Type");
// verify the content-type is json
if (contentType != null && contentType.contains("application/json")) {
Expand Down

0 comments on commit 002c0b6

Please sign in to comment.