my eye

Add Host to ActivityPub HTTP Signature

Committed a8fc2b

--- a/webint_owner/__init__.py
+++ b/webint_owner/__init__.py

 from hashlib import sha256
 from urllib.parse import urlparse
 
+import easyuri
 import httpsig
 import requests
 import requests.auth
         "Accept": "application/activity+json",
         "Date": web.now().strftime("%a, %d %b %Y %H:%M:%S GMT"),
         "Digest": f"SHA-256={b64encode(sha256(data or b'').digest()).decode()}",
+        "Host": easyuri.parse(url).host,
     }
     auth = HTTPSignatureAuth(
         f"{tx.origin}/owner/actor#main-key",