incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject Re: [PATCH] Fix for DTACLOUD-18 : Missing Host header not handled
Date Mon, 26 Sep 2011 12:56:30 GMT
+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
 

Mime
View raw message