locust 2.19.2.dev62__py3-none-any.whl → 2.19.2.dev66__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of locust might be problematic. Click here for more details.
- locust/_version.py +2 -2
- locust/contrib/fasthttp.py +6 -5
- {locust-2.19.2.dev62.dist-info → locust-2.19.2.dev66.dist-info}/METADATA +1 -1
- {locust-2.19.2.dev62.dist-info → locust-2.19.2.dev66.dist-info}/RECORD +8 -8
- {locust-2.19.2.dev62.dist-info → locust-2.19.2.dev66.dist-info}/LICENSE +0 -0
- {locust-2.19.2.dev62.dist-info → locust-2.19.2.dev66.dist-info}/WHEEL +0 -0
- {locust-2.19.2.dev62.dist-info → locust-2.19.2.dev66.dist-info}/entry_points.txt +0 -0
- {locust-2.19.2.dev62.dist-info → locust-2.19.2.dev66.dist-info}/top_level.txt +0 -0
locust/_version.py
CHANGED
@@ -12,5 +12,5 @@ __version__: str
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
13
13
|
version_tuple: VERSION_TUPLE
|
14
14
|
|
15
|
-
__version__ = version = '2.19.2.
|
16
|
-
__version_tuple__ = version_tuple = (2, 19, 2, '
|
15
|
+
__version__ = version = '2.19.2.dev66'
|
16
|
+
__version_tuple__ = version_tuple = (2, 19, 2, 'dev66')
|
locust/contrib/fasthttp.py
CHANGED
@@ -378,7 +378,7 @@ class FastHttpUser(User):
|
|
378
378
|
with self.client.request(method, url, catch_response=True, headers=headers, **kwargs) as r:
|
379
379
|
resp = cast(RestResponseContextManager, r)
|
380
380
|
resp.js = None # type: ignore
|
381
|
-
if resp.
|
381
|
+
if resp.content is None:
|
382
382
|
resp.failure(str(resp.error))
|
383
383
|
elif resp.text:
|
384
384
|
try:
|
@@ -461,14 +461,15 @@ class FastResponse(CompatResponse):
|
|
461
461
|
if self.encoding is None:
|
462
462
|
if self.headers is None:
|
463
463
|
# No information, try to detect
|
464
|
-
self.encoding =
|
464
|
+
self.encoding = detect(self.content)["encoding"]
|
465
465
|
else:
|
466
466
|
self.encoding = get_encoding_from_headers(self.headers)
|
467
467
|
# No information, try to detect
|
468
468
|
if not self.encoding:
|
469
|
-
self.encoding =
|
470
|
-
|
471
|
-
|
469
|
+
self.encoding = detect(self.content)["encoding"]
|
470
|
+
if self.encoding is None:
|
471
|
+
return None
|
472
|
+
return str(self.content, str(self.encoding), errors="replace")
|
472
473
|
|
473
474
|
@property
|
474
475
|
def url(self) -> Optional[str]:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=Q6sqz7YDUaMKPEqcDjWcXEFG2ilVRQR7kl0fG0yK_5A,1402
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=BFWSWiHUr_nByn7VOCdeLTufRp6hx7HOKzhTXxHDiLs,428
|
4
4
|
locust/argument_parser.py,sha256=H2tzJLu1F3oxxYkXLRUT6GtpV5UG5aGTcPWI3XwE4-c,26365
|
5
5
|
locust/clients.py,sha256=GJXTWcyBAepE6O-o-V92WboV8XKOXxWR-AixlcL74_w,14768
|
6
6
|
locust/debug.py,sha256=pEnZ74679vCdDODEMTNvjYcVdWCe4sWolHDJvdXh9dU,4818
|
@@ -18,7 +18,7 @@ locust/shape.py,sha256=SrKDabGtZ5bqMopJDdivvLbPencaYfAPUv1qzQiAgiA,1969
|
|
18
18
|
locust/stats.py,sha256=i0d_qnNZ-S4sA7VBsVPdoSmfl5f-hMRFiCTX432PZoU,45952
|
19
19
|
locust/web.py,sha256=XbaOWuBHvgGOGfTuv7kc4TVLD1cvEHlSVBAeBkm-qms,27139
|
20
20
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
|
-
locust/contrib/fasthttp.py,sha256=
|
21
|
+
locust/contrib/fasthttp.py,sha256=qAEW7EwLot605rm1irLSuGA3TixvfioNYnKsq2PolWY,26534
|
22
22
|
locust/rpc/__init__.py,sha256=nVGoHWFQxZjnhCDWjbgXIbmFbN9sizAjkhvSs9_642c,58
|
23
23
|
locust/rpc/protocol.py,sha256=AGFtveF7-_i5ipsRYhT-ily4blxnjZ3FXeIL6ZabO4c,1285
|
24
24
|
locust/rpc/zmqrpc.py,sha256=zG6hli3RouftrI28XqAlHtZ-UUSM9Wn41HkY9cKgAU4,2591
|
@@ -94,9 +94,9 @@ locust/webui/dist/report.html,sha256=Vyi9LIAjBNiAsvn6LVFkdAZ9R4Fa8UjHnqscjAeOFp8
|
|
94
94
|
locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
|
95
95
|
locust/webui/dist/assets/index-01afe4fa.js,sha256=uXPULlueC1FWZnTAMk7oA0wCSeY7xtNbxxycrIVvEGQ,1627703
|
96
96
|
locust/webui/dist/assets/logo.png,sha256=lPCYhpDsPXYY3gUMlq3bzABI5WBtdBOvtay8R9hRFv4,2943
|
97
|
-
locust-2.19.2.
|
98
|
-
locust-2.19.2.
|
99
|
-
locust-2.19.2.
|
100
|
-
locust-2.19.2.
|
101
|
-
locust-2.19.2.
|
102
|
-
locust-2.19.2.
|
97
|
+
locust-2.19.2.dev66.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
98
|
+
locust-2.19.2.dev66.dist-info/METADATA,sha256=sr0Z12GbMc58E47QozpIJpE_eoHRLDsOinf_sMjnb9M,7150
|
99
|
+
locust-2.19.2.dev66.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
100
|
+
locust-2.19.2.dev66.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
101
|
+
locust-2.19.2.dev66.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
|
102
|
+
locust-2.19.2.dev66.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|