Skip to content

Commit

Permalink
Removed 406 status code because of missing Mime type parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
x7airworker committed Oct 31, 2023
1 parent ba03cde commit 9497e29
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ public String transform(Exchange exchange, Object object) {
return this.mapper.map(object).toYaml();
case "application/x-www-form-urlencoded":
return this.mapper.map(object).toFormDataString();
case "application/json":
return this.mapper.map(object).toJsonString();
default:
exchange.status(406);
return "Not Acceptable";
}
}

Expand Down

0 comments on commit 9497e29

Please sign in to comment.