Skip to content

Commit

Permalink
missings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodolfo Miranda committed Aug 11, 2023
1 parent 4fff326 commit 8920d70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/keri/app/agenting.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,10 @@ def __init__(self, hab, wit, url, msgs=None, sent=None, doers=None, **kwa):
doers.extend([doing.doify(self.msgDo), doing.doify(self.responseDo)])

up = urlparse(url)
if up.scheme != kering.Schemes.http:
if up.scheme != kering.Schemes.http and up.scheme != kering.Schemes.https:
raise ValueError(f"invalid scheme {up.scheme} for HTTPMessenger")

self.client = http.clienting.Client(hostname=up.hostname, port=up.port)
self.client = http.clienting.Client(scheme=up.scheme, hostname=up.hostname, port=up.port)
clientDoer = http.clienting.ClientDoer(client=self.client)

doers.extend([clientDoer])
Expand Down Expand Up @@ -825,8 +825,8 @@ def messengerFrom(hab, pre, urls):
Returns:
Optional(TcpWitnesser, HTTPMessenger): witnesser for ensuring full reciepts
"""
if kering.Schemes.http in urls:
url = urls[kering.Schemes.http]
if kering.Schemes.http in urls or kering.Schemes.https:
rl = urls[kering.Schemes.http] if kering.Schemes.http in urls else urls[kering.Schemes.https]
witer = HTTPMessenger(hab=hab, wit=pre, url=url)
elif kering.Schemes.tcp in urls:
url = urls[kering.Schemes.tcp]
Expand Down

0 comments on commit 8920d70

Please sign in to comment.