deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 1/3] EC2: Added X-Deltacloud-Driver and X-Deltacloud-Provider to HTTP response headers
Date Wed, 06 Jun 2012 13:48:58 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/ec2/server.rb |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/lib/ec2/server.rb b/server/lib/ec2/server.rb
index 9b045e4..c8bf889 100644
--- a/server/lib/ec2/server.rb
+++ b/server/lib/ec2/server.rb
@@ -53,6 +53,8 @@ module Deltacloud::EC2
 
     after do
       headers 'Server' => 'Apache-Deltacloud-EC2/' + settings.version
+      headers 'X-Deltacloud-Driver' => driver_symbol.to_s
+      headers 'X-Deltacloud-Provider' => Thread.current[:provider] || ENV['API_PROVIDER']
|| 'default'
     end
 
     get '/' do
-- 
1.7.10.2


Mime
View raw message