route_handler: remove auto-HEAD
This commit is contained in:
parent
50dfd25450
commit
2077cfb8b9
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module Kemal
|
||||||
# a corresponding `HEAD` route.
|
# a corresponding `HEAD` route.
|
||||||
def add_route(method : String, path : String, &handler : HTTP::Server::Context -> _)
|
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 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
|
end
|
||||||
|
|
||||||
# Looks up the route from the Radix::Tree for the first time and caches to improve performance.
|
# Looks up the route from the Radix::Tree for the first time and caches to improve performance.
|
||||||
|
|
Loading…
Reference in a new issue