Skip to content

Commit

Permalink
Revert "minor"
Browse files Browse the repository at this point in the history
This reverts commit a10a76d.
  • Loading branch information
dogancanbakir committed Aug 25, 2023
1 parent fd891a5 commit 8a4066e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ func (u *URL) fetchParams() {

// ParseURL
func Parse(inputURL string) (*URL, error) {
inputURL = decodeUnicodeEscapes(inputURL)
return ParseURL(inputURL, false)
}

Expand All @@ -238,7 +239,6 @@ func decodeUnicodeEscapes(inputURL string) string {

// Parse and return URL
func ParseURL(inputURL string, unsafe bool) (*URL, error) {
inputURL = decodeUnicodeEscapes(inputURL)
u := &URL{
URL: &url.URL{},
Original: inputURL,
Expand Down

0 comments on commit 8a4066e

Please sign in to comment.