Skip to content

Commit

Permalink
small body tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
perwendel committed May 3, 2016
1 parent 04d0563 commit 8819a52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/spark/http/matching/Routes.java
Expand Up @@ -66,7 +66,11 @@ static void execute(RouteContext context) throws Exception {
content = result;

if (content instanceof String) {
context.responseWrapper().body((String) content);
String contentStr = (String) content;

if (!contentStr.equals("")) {
context.responseWrapper().body(contentStr);
}
}
}
}
Expand Down

0 comments on commit 8819a52

Please sign in to comment.