From 3d2251317acf255aebb0b9deed568ecfafcf8788 Mon Sep 17 00:00:00 2001 From: Hein Date: Tue, 26 May 2026 10:31:34 +0200 Subject: [PATCH] fix(headers): remove unused utf8 validation in DecodeParam --- pkg/restheadspec/headers.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/restheadspec/headers.go b/pkg/restheadspec/headers.go index c347850..53e5c17 100644 --- a/pkg/restheadspec/headers.go +++ b/pkg/restheadspec/headers.go @@ -8,7 +8,6 @@ import ( "regexp" "strconv" "strings" - "unicode/utf8" "github.com/bitechdev/ResolveSpec/pkg/common" "github.com/bitechdev/ResolveSpec/pkg/logger" @@ -102,11 +101,6 @@ func DecodeParam(pStr string) (string, error) { if strings.HasPrefix(code, "ZIP_") || strings.HasPrefix(code, "__") { code, _ = DecodeParam(code) - } else { - strDat, err := base64.StdEncoding.DecodeString(code) - if err == nil && utf8.Valid(strDat) { - code = string(strDat) - } } return code, nil