--- /URLCodec.java	2023-07-05 02:59:24.126051877 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/URLCodec.java	2023-07-05 02:59:24.126051877 +0200
@@ -334,7 +334,7 @@
             return null;
         } else if (pObject instanceof byte[]) {
             return decode((byte[]) pObject);
-        } else if (pObject instanceof String) {
+} else if  ( pObject instanceof byte[] )  {
             return decode((String) pObject);
         } else {
             throw new DecoderException("Objects of type " + pObject.getClass().getName() + " cannot be URL decoded");
