Explicitly set user agent parameters

main
Bob Mottram 2022-05-26 23:14:25 +01:00
parent d302f77415
commit b193837932
1 changed files with 4 additions and 8 deletions

View File

@ -258,8 +258,7 @@ def get_json(signing_priv_key_pem: str,
def get_vcard(xml_format: bool,
session, url: str, params: {}, debug: bool,
version: str = __version__, http_prefix: str = 'https',
domain: str = 'testdomain',
version: str, http_prefix: str, domain: str,
timeout_sec: int = 20, quiet: bool = False) -> {}:
if not isinstance(url, str):
if debug and not quiet:
@ -337,8 +336,7 @@ def get_vcard(xml_format: bool,
def download_html(signing_priv_key_pem: str,
session, url: str, headers: {}, params: {}, debug: bool,
version: str = __version__, http_prefix: str = 'https',
domain: str = 'testdomain',
version: str, http_prefix: str, domain: str,
timeout_sec: int = 20, quiet: bool = False) -> {}:
if not isinstance(url, str):
if debug and not quiet:
@ -377,8 +375,7 @@ def download_html(signing_priv_key_pem: str,
def download_ssml(signing_priv_key_pem: str,
session, url: str, headers: {}, params: {}, debug: bool,
version: str = __version__, http_prefix: str = 'https',
domain: str = 'testdomain',
version: str, http_prefix: str, domain: str,
timeout_sec: int = 20, quiet: bool = False) -> {}:
if not isinstance(url, str):
if debug and not quiet:
@ -737,8 +734,7 @@ def download_image_any_mime_type(session, url: str,
def get_method(method_name: str, xml_str: str,
session, url: str, params: {}, headers: {}, debug: bool,
version: str = __version__, http_prefix: str = 'https',
domain: str = 'testdomain',
version: str, http_prefix: str, domain: str,
timeout_sec: int = 20, quiet: bool = False) -> {}:
"""Part of the vcard interface
"""