Skip to content

Commit

Permalink
Fixed HTTP status code for admin based health check round 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
MammatusPlatypus committed Apr 30, 2016
1 parent 8875ed2 commit dc25248
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

ext {
projectVersion = '1.7.0.RC1'
projectVersion = '1.7.1'
boonVersion = '0.5.7'
boonGroup = "io.advantageous.boon"
springFrameworkVersion = '4.2.5.RELEASE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public void ok(final Callback<HttpTextResponse> responseCallback) {

healthService.ok(callbackBuilder().withBooleanCallback(ok -> {
if (ok) {
responseCallback.resolve(httpResponseBuilder().setBody("true").buildTextResponse());
responseCallback.resolve(httpResponseBuilder().setBody("true").setCode(200).buildTextResponse());
} else {
responseCallback.resolve(httpResponseBuilder().setBody("false").setCode(503).buildTextResponse());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class HttpResponseBuilder {
/**
* Response code.
*/
private int code;
private int code = 200;

/**
* Content Type, e.g., "application/json"
Expand Down

0 comments on commit dc25248

Please sign in to comment.