Skip to content

Commit

Permalink
remove quote_plus
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Antoine Belanger committed Jul 16, 2020
1 parent 53a246a commit d7bc4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oic/utils/authn/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def construct(self, cis, request_args=None, http_args=None, **kwargs):
if "headers" not in http_args:
http_args["headers"] = {}

credentials = "{}:{}".format(quote_plus(user), quote_plus(passwd))
credentials = "{}:{}".format(user, passwd)
authz = base64.b64encode(credentials.encode("utf-8")).decode("utf-8")
http_args["headers"]["Authorization"] = "Basic {}".format(authz)

Expand Down

0 comments on commit d7bc4b4

Please sign in to comment.