Skip to content

Commit

Permalink
Merge branch 'master' of github.com:noboomu/proteus
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Apr 22, 2019
2 parents d08cd8a + d0f2388 commit 9bf999e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ protected void addClassMethodHandlers(TypeSpec.Builder typeBuilder, Class<?> cla
methodBuilder.addStatement("exchange.getResponseHeaders().put($T.CONTENT_TYPE, $S)", Headers.class, producesContentType);

if (m.getReturnType().equals(String.class)) {
methodBuilder.addStatement("exchange.getResponseHeaders().send($L)", "response");
methodBuilder.addStatement("exchange.getResponseSender().send($L)", "response");
} else {
methodBuilder.addStatement("exchange.getResponseSender().send($L.toString())", "response");
}
Expand Down

0 comments on commit 9bf999e

Please sign in to comment.