+before do
+  # Respond with 400, If we don't get a http Host header,
+  halt 400, "Unable to find HTTP Host header" if @env['HTTP_HOST'] == nil
+end
+
 # Redirect to /api
 get '/' do redirect root_url, 301; end
 

Reply via email to