FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove trailing slash when building url by s3bw · Pull Request #858 · livekit/livekit-cli · GitHub

Remove trailing slash when building url - #858

Open
s3bw wants to merge 1 commit into
livekit:mainfrom
s3bw:remove-trailing-slash
Open

Remove trailing slash when building url#858
s3bw wants to merge 1 commit into
livekit:mainfrom
s3bw:remove-trailing-slash

Conversation

s3bw commented Jun 3, 2026

Copy link
Copy Markdown

This is host dependent, but providing example.com/?url... can be treated as a different path to example.com?url....

Instead we rely on what ever the user provides as base_url and append the query params to that base url.

CLAassistant commented Jun 3, 2026
edited
Loading

Copy link
Copy Markdown


All committers have signed the CLA.

davidzhao commented Jul 8, 2026
edited
Loading

Copy link
Copy Markdown
Member

I think we should use a proper URL builder here, instead of string manipulations. the current code seems fragile and a bit difficult to reason with.

i.e.

u, err := url.Parse(baseUrl)
if err != nil {
    log.Fatal(err)
}
q := u.Query()
q.Set("url", ...)
u.RawQuery = q.Encode()
fmt.Println(u)

This file contains hidden or 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
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.

3 participants


Back | FazBrowse Home | New Git URL