Skip to content

Commit

Permalink
FastHttpUser: Treat response code 305 as OK. Fixes #2500
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Dec 4, 2023
1 parent d10e65f commit dfe9cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/contrib/fasthttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def raise_for_status(self):
class LocustUserAgent(UserAgent):
response_type = FastResponse
request_type = FastRequest
valid_response_codes = frozenset([200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 301, 302, 303, 307])
valid_response_codes = frozenset([200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 301, 302, 303, 304, 307])

def __init__(self, client_pool: Optional[HTTPClientPool] = None, **kwargs):
super().__init__(**kwargs)
Expand Down

0 comments on commit dfe9cd3

Please sign in to comment.