From f9aeca796df3acf09feb773c257f29f056ef3f1b Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 27 Aug 2019 20:58:23 -0700 Subject: Set content type --- curling.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'curling.rb') diff --git a/curling.rb b/curling.rb index 375ce27..59c67db 100644 --- a/curling.rb +++ b/curling.rb @@ -7,6 +7,10 @@ def secret ENV['HEX_SECRET'] || 'tajny_token_hehe' end +before do + headers 'Content-Type' => 'text/plain' +end + get '/' do <<~MSG Welcome to Hex Curler! -- cgit v1.2.3