File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
impl/src/main/java/io/jsonwebtoken/impl Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public class DefaultJwtParserBuilder implements JwtParserBuilder {
5555
5656 private SigningKeyResolver signingKeyResolver ;
5757
58- private CompressionCodecResolver compressionCodecResolver = new DefaultCompressionCodecResolver () ;
58+ private CompressionCodecResolver compressionCodecResolver ;
5959
6060 private Decoder <String , byte []> base64UrlDecoder = Decoders .BASE64URL ;
6161
@@ -191,6 +191,11 @@ public JwtParser build() {
191191 this .deserializer = Services .loadFirst (Deserializer .class );
192192 }
193193
194+ // if the compressionCodecResolver is not set default it.
195+ if (this .compressionCodecResolver == null ) {
196+ this .compressionCodecResolver = new DefaultCompressionCodecResolver ();
197+ }
198+
194199 return new ImmutableJwtParser (
195200 new DefaultJwtParser (signingKeyResolver ,
196201 key ,
You can’t perform that action at this time.
0 commit comments