diff --git a/locust/contrib/fasthttp.py b/locust/contrib/fasthttp.py index c502d1ec5c..d2fd503773 100644 --- a/locust/contrib/fasthttp.py +++ b/locust/contrib/fasthttp.py @@ -301,7 +301,7 @@ def get(self, url: str, **kwargs: Unpack[RESTKwargs]) -> ResponseContextManager def iter_lines(self, url: str, **kwargs) -> Generator[str, None, None]: """Sends a iter_lines request""" response = self.request("GET", url, stream=True, **kwargs) - response.raise_for_status() # Check for HTTP errors + response.raise_for_status() buffer = '' for chunk in response.iter_content(chunk_size=1024): buffer += chunk.decode('utf-8')