Skip to content

fix: nil UriParams when uri with port #217

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

Merged
merged 1 commit into from
Mar 29, 2025
Merged

fix: nil UriParams when uri with port #217

merged 1 commit into from
Mar 29, 2025

Conversation

hateeyan
Copy link
Contributor

Hi,

When the URI contains a port and no params, UriParams will be nil, and calling UriParams.Add will panic.

If the URI does not contain a port, it works fine. From the code, it is found that if the port is not included, uriFSM will return uriStateUriParams, so uriStateUriParams should also be returned when the port exists.

@emiago emiago merged commit ff412b4 into emiago:main Mar 29, 2025
1 check passed
@hateeyan hateeyan deleted the uri branch March 29, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants