Skip to content

Commit 376de6b

Browse files
author
Florian
committed
updates
1 parent 462da4b commit 376de6b

File tree

7 files changed

+6
-1
lines changed

7 files changed

+6
-1
lines changed

tls_client/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
__title__ = "tls_client"
88
__description__ = "Advanced Python HTTP Client."
9-
__version__ = "0.1.4"
9+
__version__ = "0.1.5"
1010
__author__ = "Florian Zager"
1111
__license__ = "MIT"
10.6 KB
Binary file not shown.
17 KB
Binary file not shown.
20.8 KB
Binary file not shown.
14.4 KB
Binary file not shown.
25.3 KB
Binary file not shown.

tls_client/sessions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def __init__(
2828
connection_flow: Optional[int] = None,
2929
priority_frames: Optional[list] = None,
3030
header_order: Optional[list] = None, # Optional[list[str]]
31+
random_tls_extension_order: Optional = False
3132
) -> None:
3233
self._session_id = str(uuid.uuid4())
3334
# --- Standard Settings ----------------------------------------------------------------------------------------
@@ -206,6 +207,9 @@ def __init__(
206207
# ]
207208
self.header_order = header_order
208209

210+
# randomize tls extension order
211+
self.random_tls_extension_order = random_tls_extension_order
212+
209213
def execute_request(
210214
self,
211215
method: str,
@@ -305,6 +309,7 @@ def execute_request(
305309
}
306310
else:
307311
request_payload["tlsClientIdentifier"] = self.client_identifier
312+
request_payload["withRandomTLSExtensionOrder"] = self.random_tls_extension_order
308313

309314
# this is a pointer to the response
310315
response = request(dumps(request_payload).encode('utf-8'))

0 commit comments

Comments
 (0)