Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4bba3e

Browse filesBrowse files
committed
Make AsyncSession headers empty by default
1 parent f2de02f commit e4bba3e
Copy full SHA for e4bba3e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-8
lines changed

‎async_tls_client/sessions.py

Copy file name to clipboardExpand all lines: async_tls_client/sessions.py
+1-8Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,7 @@ def __init__(
237237
"""
238238
self._session_id = str(uuid.uuid4())
239239
# Standard Settings
240-
self.headers = CaseInsensitiveDict(
241-
{
242-
"User-Agent": f"tls-client/{__version__}",
243-
"Accept-Encoding": "gzip, deflate, br",
244-
"Accept": "*/*",
245-
"Connection": "keep-alive",
246-
}
247-
)
240+
self.headers = CaseInsensitiveDict()
248241
self.proxies = {}
249242
self.params = {}
250243
self.cookies = cookiejar_from_dict({})

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.