Skip to content

Commit

Permalink
Merge pull request #2501 from locustio/fasthttpuser-treat-response-co…
Browse files Browse the repository at this point in the history
…de-305-as-ok

FastHttpUser: Treat response code 305 as OK
  • Loading branch information
cyberw authored Dec 4, 2023
2 parents 21453a8 + dfe9cd3 commit 1dbea16
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 1dbea16

Please sign in to comment.