Skip to content

Commit 9497e29

Browse files
committed
Removed 406 status code because of missing Mime type parsing
1 parent ba03cde commit 9497e29

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/org/javawebstack/http/router/transformer/response/SerializedResponseTransformer.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ public String transform(Exchange exchange, Object object) {
4444
return this.mapper.map(object).toYaml();
4545
case "application/x-www-form-urlencoded":
4646
return this.mapper.map(object).toFormDataString();
47-
case "application/json":
48-
return this.mapper.map(object).toJsonString();
49-
default:
50-
exchange.status(406);
51-
return "Not Acceptable";
5247
}
5348
}
5449

0 commit comments

Comments
 (0)