Skip to content

Issue39: Remove wildcard * from registration of RelayHandler #40

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

Closed
wants to merge 3 commits into from

Conversation

theJC
Copy link
Contributor

@theJC theJC commented Feb 1, 2025

Probably safest to merge in #41 first.


Fixes #39

Using the asterisk no longer works, after a "breaking change of an undocumented feature" was introduced.

For details, read here: golang/go#68856 (comment)

uplink-relay will not function at all without making this change with newer versions of go (ie: 1.22.5+)

@theJC theJC requested review from a team as code owners February 1, 2025 07:09
Copy link
Contributor

@lleadbet lleadbet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no way to do this since the README wasn't actually modified, but if you can update the language to say the endpoint must match exactly, that'd ensure there's no confusion that someone could put http://localhost:8080/foo/bar and still expect it to work.

Appreciate the PRs!

@lleadbet
Copy link
Contributor

Moving this to #46.

@lleadbet lleadbet closed this Apr 30, 2025
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.

Change RegisterHandler path for RelayHandler, Go ServeMux no longer considers * a wildcard
3 participants