Skip to content

Commit

Permalink
Handle spaces in URI-R
Browse files Browse the repository at this point in the history
Co-authored-by: Mat Kelly <[email protected]>
Co-authored-by: Sawood Alam <[email protected]>
  • Loading branch information
machawk1 and ibnesayeed committed Apr 17, 2024
1 parent ee2ed0d commit e6e7820
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ func parseURI(uri string) (urir string, err error) {
logError.Printf("Error Unescaping path (%s): %v", uri, err)
return
}
uescd = strings.ReplaceAll(uescd, " ", "%20")
if !regs["isprtcl"].MatchString(uescd) {
uescd = "http://" + uescd
}
Expand Down

0 comments on commit e6e7820

Please sign in to comment.