From 2077cfb8b93dda2155415376f07b31c050001de1 Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 20 Feb 2020 21:17:50 -0300 Subject: [PATCH] route_handler: remove auto-HEAD --- src/kemal/route_handler.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal/route_handler.cr b/src/kemal/route_handler.cr index 216616a..d256403 100644 --- a/src/kemal/route_handler.cr +++ b/src/kemal/route_handler.cr @@ -21,7 +21,7 @@ module Kemal # a corresponding `HEAD` route. def add_route(method : String, path : String, &handler : HTTP::Server::Context -> _) add_to_radix_tree method, path, Route.new(method, path, &handler) - add_to_radix_tree("HEAD", path, Route.new("HEAD", path) { }) if method == "GET" + # add_to_radix_tree("HEAD", path, Route.new("HEAD", path) { }) if method == "GET" end # Looks up the route from the Radix::Tree for the first time and caches to improve performance.