Skip to content

Commit

Permalink
Add response null-check to FindRolesWithinJWTClaims.bambda.
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-porpoise authored Nov 27, 2023
1 parent bb2a66b commit 0739fe2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Proxy/HTTP/FindRolesWithinJWTClaims.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* @author Trikster
**/

if (!requestResponse.hasResponse())
{
return false;
}

var body = requestResponse.response().bodyToString().trim();

if (requestResponse.response().hasHeader("authorization")) {
Expand Down

0 comments on commit 0739fe2

Please sign in to comment.