From 4b325b46ceafd23ce8b65578a2c8dca93b128b88 Mon Sep 17 00:00:00 2001 From: Nick Mastoris Date: Mon, 8 Jul 2024 06:02:07 +0000 Subject: [PATCH] minor fix --- src/idpyoidc/message/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idpyoidc/message/__init__.py b/src/idpyoidc/message/__init__.py index cfd8a363..46d23440 100644 --- a/src/idpyoidc/message/__init__.py +++ b/src/idpyoidc/message/__init__.py @@ -136,7 +136,7 @@ def to_urlencoded(self, doseq=False): params.append((key, str(val))) try: - return urlencode(params, doseq) + return urlencode(params, doseq=doseq) except UnicodeEncodeError: _val = [] for k, v in params: @@ -144,7 +144,7 @@ def to_urlencoded(self, doseq=False): _val.append((k, v.encode("utf-8"))) except TypeError: _val.append((k, v)) - return urlencode(_val, doseq) + return urlencode(_val, doseq=doseq) def serialize(self, method="urlencoded", **kwargs): """