Skip to content

Commit 70184df

Browse files
committed
FastHttpUser: Allow http status code 308
1 parent 34b1d94 commit 70184df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locust/contrib/fasthttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def __repr__(self):
630630
class LocustUserAgent(UserAgent):
631631
response_type = FastResponse
632632
request_type = FastRequest
633-
valid_response_codes = frozenset([200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 301, 302, 303, 304, 307])
633+
valid_response_codes = frozenset([200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 301, 302, 303, 304, 307, 308])
634634

635635
def __init__(self, client_pool: HTTPClientPool | None = None, **kwargs):
636636
super().__init__(**kwargs)

0 commit comments

Comments
 (0)