Skip to content

Commit

Permalink
Qualifier values do not convert first char to lowercase
Browse files Browse the repository at this point in the history
This is not required by the spec or any test cases.
  • Loading branch information
wetterjames4 authored and shibumi committed Sep 29, 2023
1 parent 4ba1d7f commit bca39a1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packageurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,6 @@ func parseQualifiers(rawQuery string) (Qualifiers, error) {
return nil, fmt.Errorf("invalid qualifier key: '%s'", key)
}

value, err = url.QueryUnescape(value)
if err != nil {
return nil, fmt.Errorf("error unescaping qualifier value %q", value)
}

if len(value) > 0 {
// only the first character needs to be lowercase. Note that pURL is always UTF8, so we
// don't need to care about unicode here.
Expand Down

0 comments on commit bca39a1

Please # to comment.