Skip to content

Commit

Permalink
Use client ObjectMappers (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisjoe committed May 29, 2019
1 parent 75c3d1f commit d817fd1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public <T> Deserializer<T> deserializer(TypeMarker<T> type) {

/** Returns a serializer for the Conjure JSON wire format. */
public static Encoding json() {
return new AbstractJacksonEncoding(configure(ObjectMappers.newServerObjectMapper())) {
return new AbstractJacksonEncoding(configure(ObjectMappers.newClientObjectMapper())) {
private static final String CONTENT_TYPE = "application/json";

@Override
Expand All @@ -101,7 +101,7 @@ public boolean supportsContentType(String contentType) {

/** Returns a serializer for the Conjure CBOR wire format. */
public static Encoding cbor() {
return new AbstractJacksonEncoding(configure(ObjectMappers.newCborServerObjectMapper())) {
return new AbstractJacksonEncoding(configure(ObjectMappers.newCborClientObjectMapper())) {
private static final String CONTENT_TYPE = "application/cbor";

@Override
Expand Down

0 comments on commit d817fd1

Please sign in to comment.