Skip to content

Commit

Permalink
chore: pr feedback neaten code
Browse files Browse the repository at this point in the history
  • Loading branch information
GangGreenTemperTatum committed Oct 28, 2024
1 parent 76d228b commit 2749267
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Filter/Proxy/HTTP/HighlightPwnFox.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,5 @@
* @author GangGreenTemperTatum (https://github.com/GangGreenTemperTatum)
**/

var request = requestResponse.request();

// Check if the request is in scope
if (!request.isInScope()) {
return false;
}

// Check if the request has the "X-Pwnfox-Color" header
var hasPwnfoxColorHeader = request.hasHeader("X-Pwnfox-Color");

return hasPwnfoxColorHeader;
var request = requestResponse.request();
return request.isInScope() && request.hasHeader("X-Pwnfox-Color");

0 comments on commit 2749267

Please sign in to comment.