Skip to content

Commit

Permalink
Upcheck should produce a plain text response
Browse files Browse the repository at this point in the history
  • Loading branch information
jframe committed Aug 31, 2023
1 parent 73a5741 commit b5c29c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/tech/pegasys/web3signer/core/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@

public abstract class Runner implements Runnable, AutoCloseable {
public static final String JSON = HttpHeaderValues.APPLICATION_JSON.toString();
public static final String TEXT_PLAIN = HttpHeaderValues.TEXT_PLAIN.toString();
public static final String HEALTHCHECK_PATH = "/healthcheck";
public static final String UPCHECK_PATH = "/upcheck";
public static final String RELOAD_PATH = "/reload";
Expand Down Expand Up @@ -253,7 +254,7 @@ protected void addReloadHandler(
private void registerUpcheckRoute(final Router router, final LogErrorHandler errorHandler) {
router
.route(HttpMethod.GET, UPCHECK_PATH)
.produces(JSON)
.produces(TEXT_PLAIN)
.handler(new BlockingHandlerDecorator(new UpcheckHandler(), false))
.failureHandler(errorHandler);
}
Expand Down

0 comments on commit b5c29c7

Please sign in to comment.