-
Notifications
You must be signed in to change notification settings - Fork 26
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
Remove double / when requesting index.txt #223
Comments
My idea is to use https://pkg.go.dev/net/[email protected]#URL.JoinPath for this. |
In general, I like the idea. Nevertheless, I guess we can do the short term fix (see #224). |
Did you mean back-porting it into this project? 🤔 Wouldn't be my first choice... What about making 1.19 mandatory? (When was it released?) |
Go 1.19 is not release, yet. So its not a good idea to make it mandatory. |
Background why I would go this way is that we are joining URL path in other contexts, too. Issue #158 is another suspicious case where a simple string concat of URL strings leads to bad results. |
Hint: I've used the short term fix in the #176. Maybe its time to check if we close or merge this one. |
* Use url.JoinPath to join URLs from a few places. * Add util/joinpath.go from go 1.19, add the license in REUSE 3.0 compatible manner. resolve #223 Co-authored-by: Bernhard Reiter <[email protected]>
Currently, the GET request looks like:
We should remove one
/
to avoid redirects.The text was updated successfully, but these errors were encountered: