From 0071291236df6d0a3b07ce9567f9d78f4d333181 Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Sun, 10 Jul 2016 13:12:31 -0400 Subject: [PATCH] Move body handler up in the route order to fix stack traces we were having --- src/main/java/net/frozenorb/apiv3/APIv3.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/frozenorb/apiv3/APIv3.java b/src/main/java/net/frozenorb/apiv3/APIv3.java index 7f0d720..5698a3b 100644 --- a/src/main/java/net/frozenorb/apiv3/APIv3.java +++ b/src/main/java/net/frozenorb/apiv3/APIv3.java @@ -271,10 +271,10 @@ public final class APIv3 extends AbstractVerticle { http.route().handler(LoggerHandler.create(LoggerFormat.TINY)); http.route().handler(TimeoutHandler.create(TimeUnit.SECONDS.toMillis(5))); + http.route().method(HttpMethod.PUT).method(HttpMethod.POST).method(HttpMethod.DELETE).handler(BodyHandler.create()); http.route().handler(new ActorAttributeHandler()); http.route().handler(new MetricsHandler()); http.route().handler(new AuthorizationHandler()); - http.route().method(HttpMethod.PUT).method(HttpMethod.POST).method(HttpMethod.DELETE).handler(BodyHandler.create()); http.exceptionHandler(Throwable::printStackTrace); // TODO: The commented out routes