-
Notifications
You must be signed in to change notification settings - Fork 43
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
withProtocol
stips host when input is in {host}:{post}
format
#237
Comments
withProtocol
, withHttp
and withHttps
remove host when port is present in the string{host}:{post}
format
{host}:{post}
formatwithProtocol
stips host when input is in {host}:{post}
format
Hi. This is an annoying issue and edge-case indeed but the reason is that at least by spec, One possible solution is that we make regex to be stricter and require (*) quick research for known exceptions: (as we see, this can extend)
extended list (thanks to chatgpt!)
I would suggest that you change your application to either accept |
Sorry, I didn't notice I posted it on In reality I didn't notice this bug with |
Environment
Node.js
20
and Bun1.1
packages:
3.11.2
1.5.3
Reproduction
I'm sufficiently secure this is more than enough
Describe the bug
The reproduction outputs:
Additional context
Discovered this while building a small app that will be containerized and deployed within a docker stack.
The
host
(picked from the runtimeConfig) is used to define the container hostname for the backend, and since they could bind or edit the default port I wanted to let them include into the env variable that overrides the runtimeConfig, but with my surprise that it also deletes thehost
part.Logs
No response
The text was updated successfully, but these errors were encountered: