incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@apache.org>
Subject [PATCH] Add a custom Server http header
Date Tue, 27 Sep 2011 16:31:01 GMT
---
 server/server.rb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/server/server.rb b/server/server.rb
index 9d9035c..e2a6767 100644
--- a/server/server.rb
+++ b/server/server.rb
@@ -82,6 +82,10 @@ before do
   halt 400, "Unable to find HTTP Host header" if @env['HTTP_HOST'] == nil
 end
 
+after do
+  headers 'Server' => 'Apache-Deltacloud/' + settings.version
+end
+
 # Redirect to /api
 get '/' do redirect root_url, 301; end
 
-- 
1.7.1


Mime
View raw message