Skip to content

Commit

Permalink
(HP-1699): remove spaces in header value
Browse files Browse the repository at this point in the history
  • Loading branch information
george42-ctds committed Sep 25, 2024
1 parent 0d04d37 commit 5e08117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wts/blueprints/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def logout_oauth():
try:
app_version = flask.current_app.config.get("APP_VERSION", "0.0.0")
client.session.revoke_token(
url, token, headers={"User-Agent": f"Gen3WTS / {app_version}"}
url, token, headers={"User-Agent": f"Gen3WTS/{app_version}"}
)
except APIError as e:
msg = "could not log out, failed to revoke token: {}".format(e.message)
Expand Down
2 changes: 1 addition & 1 deletion wts/resources/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def client_do_authorize():
app_version = flask.current_app.config.get("APP_VERSION", "0.0.0")
tokens = client.fetch_token(
token_url,
headers={"User-Agent": f"Gen3WTS / {app_version}"},
headers={"User-Agent": f"Gen3WTS/{app_version}"},
**flask.request.args.to_dict(),
)
refresh_refresh_token(tokens, requested_idp, username_field)
Expand Down

0 comments on commit 5e08117

Please sign in to comment.