From 7d11cef603a252a13bfe35f619f5e64162505146 Mon Sep 17 00:00:00 2001 From: Peter Kovary Date: Tue, 5 Sep 2017 13:17:18 +0100 Subject: [PATCH] Add support for http head method on root Resolves #100 --- app.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.rb b/app.rb index 515d6053..22bff52d 100644 --- a/app.rb +++ b/app.rb @@ -190,6 +190,10 @@ def not_found(locals = {path: nil}) custom_render("home", {}, anchors: false) end + on head, "" do + res.status = 200 + end + on get, "buzz" do custom_render("buzz", {}, anchors: false) end