Skip to content

Commit

Permalink
Address reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
drwetter committed Jan 31, 2025
1 parent 783236a commit c83c5d2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Filter/Proxy/HTTP/HighlightGraphQLMutations.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
* }
**/

// we don't want to generate a stack trace when this occurs
if (!requestResponse.hasResponse()) {
return false;
}

// trim some chars just to be sure
// trim some chars just to be sure. For parsing more e.g. JsonNode is better
var body = requestResponse.request().bodyToString().trim();

// written as regex so that it can be extended if needed
Expand All @@ -27,4 +23,3 @@ if (graphqlMatcher.find()) {

return true;

// vim:tw=120:ts=4:sw=4:expandtab

0 comments on commit c83c5d2

Please sign in to comment.