mirror of https://gitlab.com/bashrc2/epicyon
Explicitly set user agent parameters
parent
d302f77415
commit
b193837932
12
session.py
12
session.py
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue