diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-08-27 20:58:23 -0700 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-08-27 20:58:23 -0700 |
commit | f9aeca796df3acf09feb773c257f29f056ef3f1b (patch) | |
tree | 4a2ac947d13b59b48ad6ed24fab228aed8b3eb18 | |
parent | c08dcad9ea25b37983c536d8f86a2f25edae6feb (diff) |
Set content type
-rw-r--r-- | curling.rb | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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! |