m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/curling.rb
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-08-27 20:58:23 -0700
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-08-27 20:58:23 -0700
commitf9aeca796df3acf09feb773c257f29f056ef3f1b (patch)
tree4a2ac947d13b59b48ad6ed24fab228aed8b3eb18 /curling.rb
parentc08dcad9ea25b37983c536d8f86a2f25edae6feb (diff)
Set content type
Diffstat (limited to 'curling.rb')
-rw-r--r--curling.rb4
1 files changed, 4 insertions, 0 deletions
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!