Open
Description
Using the url.Url.String()
method causes URL encoding on the url, specifically the path field, which is problematic for passwords that contain special characters.
Example:
package main
import (
"fmt"
"net/url"
)
func main() {
u := url.URL{Scheme: "ws", Host: "127.0.0.1", Path: "$ecretP4ssword!#"}
fmt.Println(u.String()) // ws://127.0.0.1/$ecretP4ssword%21%23
}
Metadata
Metadata
Assignees
Labels
No labels