Revert "Add user agent to signed outgoing posts"

This reverts commit 7485031219.
main
Bob Mottram 2022-02-27 23:55:47 +00:00
parent 7485031219
commit 1fa7d63411
1 changed files with 1 additions and 6 deletions

View File

@ -2464,16 +2464,11 @@ def send_post(signing_priv_key_pem: str, project_version: str,
post_path, http_prefix, with_digest,
post_json_str, 'application/ld+json')
domain_full = get_full_domain(domain, port)
ua_str = 'Epicyon/' + __version__ + \
'; +' + http_prefix + '://' + domain_full + '/'
signature_header_json['User-Agent'] = ua_str
signature_header_json_ld['User-Agent'] = ua_str
# if the "to" domain is within the shared items
# federation list then send the token for this domain
# so that it can request a catalog
if to_domain in shared_items_federated_domains:
domain_full = get_full_domain(domain, port)
if shared_item_federation_tokens.get(domain_full):
signature_header_json['Origin'] = domain_full
signature_header_json_ld['Origin'] = domain_full