URLDecode, will modify the source. Assumes source bytes are encoded using a superset of US-ASCII as per RFC 7230. "%5c" will be decoded. "%2f" will be rejected unless the input is a query string. @param mb The URL encoded bytes @param query true if this is a query string. For a query str
(ByteChunk mb, boolean query)
| 77 | * @throws IOException Invalid %xx URL encoding |
| 78 | */ |
| 79 | public void convert(ByteChunk mb, boolean query) throws IOException { |
| 80 | if (query) { |
| 81 | convert(mb, true, EncodedSolidusHandling.DECODE, EncodedSolidusHandling.DECODE); |
| 82 | } else { |
| 83 | convert(mb, false, EncodedSolidusHandling.REJECT, EncodedSolidusHandling.DECODE); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | |
| 88 | /** |