diff --git a/aries_cloudagent/protocols/connections/v1_0/messages/connection_invitation.py b/aries_cloudagent/protocols/connections/v1_0/messages/connection_invitation.py index 9af5dc9783..d983eb0ede 100644 --- a/aries_cloudagent/protocols/connections/v1_0/messages/connection_invitation.py +++ b/aries_cloudagent/protocols/connections/v1_0/messages/connection_invitation.py @@ -82,7 +82,7 @@ def to_url(self, base_url: Optional[str] = None) -> str: """ c_json = self.to_json() - c_i = bytes_to_b64(c_json.encode("ascii"), urlsafe=True) + c_i = bytes_to_b64(c_json.encode("ascii"), urlsafe=True, pad=False) result = urljoin(base_url or self.endpoint or "", "?c_i={}".format(c_i)) return result