Skip to content

Commit

Permalink
fix: turn str cast into decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Jan 16, 2024
1 parent 1b4f0e5 commit d5f11b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bd_api/custom/graphql_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def ownership_required(f, exc=exceptions.PermissionDenied):

def get_uid(context, exp=r"id:\s[\"]?(\d+)[\"]?"):
try:
query = str(context.body).replace('\\"', "").lower()
query = context.body.decode("utf-8").replace('\\"', "").lower()
except Exception:
query = str(context._post).replace('\\"', "").lower()

Expand Down

0 comments on commit d5f11b2

Please sign in to comment.