-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consumer: fix panic in nextLookupdEndpoint
If you use " myhostname:4161" as NSQd HTTP address then the code panics in nextLookupdEndpoint: panic: parse "http:// myhostname:4161": invalid character " " in host name This is caused different validation of the input when configured in ConnectToNSQLookupd and when used in nextLookupdEndpoint. Moving preparation of the URL to the beginning so that we don't need to do any input validation in nextLookupdEndpoint. Fixes #316
- Loading branch information
1 parent
63a3a23
commit 16d0cdc
Showing
1 changed file
with
50 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters