Skip to content
Prev Previous commit
Next Next commit
revert change
  • Loading branch information
bsideup committed Nov 19, 2019
commit 79c36083b5de11b61174a18e31789b2d85dfbfdd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.io.IOException;
import java.util.Base64;

import com.fasterxml.jackson.databind.DeserializationFeature;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.slf4j.Logger;
Expand Down Expand Up @@ -48,9 +47,7 @@ public String toString() {
@Deprecated
protected String registryAuth(AuthConfig authConfig) {
try {
ObjectMapper objectMapper = new ObjectMapper()
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
return Base64.getEncoder().encodeToString(objectMapper.writeValueAsBytes(authConfig));
return Base64.getEncoder().encodeToString(new ObjectMapper().writeValueAsBytes(authConfig));
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down