Skip to content

Commit

Permalink
request.path instead of request.url
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-ys committed Jul 21, 2023
1 parent 4612879 commit 341e6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_readable_datasets(request=None, opa_url=OPA_URL, admin_secret=None, requ
"must be provided")
if request: # Deprecated request object of unknown type - will assume attributes
request_object = {
"url": request.url,
"url": request.path,
"method": request.method,
"headers": request.headers,
"data": request.data
Expand Down Expand Up @@ -208,7 +208,7 @@ def _is_site_admin(request=None,
"must be provided")
if request: # Deprecated request object of unknown type - will assume attributes
request_object = {
"url": request.url,
"url": request.path,
"method": request.method,
"headers": request.headers,
"data": request.data
Expand Down

0 comments on commit 341e6cf

Please sign in to comment.