Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further relax FastHttpUser's host checking to match HttpUser's #2493

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions locust/contrib/fasthttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ def __init__(self, environment):
raise LocustError(
"You must specify the base host. Either in the host attribute in the User class, or on the command line using the --host option."
)
if not re.match(r"^https?://[^/]+", self.host, re.I):
raise LocustError(f"Invalid host (`{self.host}`), must be a valid base URL. E.g. http://example.com")

self.client: FastHttpSession = FastHttpSession(
self.environment,
Expand Down