com.netaporter.uri.decoding.PermissiveDecoder.scala Maven / Gradle / Ivy
The newest version!
package com.netaporter.uri.decoding
import com.netaporter.uri.Uri
class PermissiveDecoder(child: UriDecoder) extends UriDecoder {
def decode(s: String) = {
try {
child.decode(s)
} catch {
case _: Throwable => s
}
}
}
object PermissivePercentDecoder extends PermissiveDecoder(PercentDecoder)