From bca39a1c0e2e0d39a659c0af24c43f600334e0dd Mon Sep 17 00:00:00 2001 From: James Wetter Date: Fri, 29 Sep 2023 09:13:37 +1000 Subject: [PATCH] Qualifier values do not convert first char to lowercase This is not required by the spec or any test cases. --- packageurl.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packageurl.go b/packageurl.go index 21a44ee..e17d83e 100644 --- a/packageurl.go +++ b/packageurl.go @@ -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.