deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 03/16] Core: Added X-Deltacloud-Provider and X-Deltacloud-Driver header to HTTP response
Date Thu, 19 Jul 2012 13:02:36 GMT
From: Michal Fojtik <mfojtik@redhat.com>


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

diff --git a/server/lib/deltacloud/helpers.rb b/server/lib/deltacloud/helpers.rb
index 0c66103..6566c59 100644
--- a/server/lib/deltacloud/helpers.rb
+++ b/server/lib/deltacloud/helpers.rb
@@ -66,6 +66,10 @@ module Deltacloud::Collections
 
     after do
       headers 'Server' => 'Apache-Deltacloud/' + settings.version
+      headers 'X-Deltacloud-Driver' => driver_name
+      if provider_name
+        headers 'X-Deltacloud-Provider' => provider_name
+      end
     end
 
     def self.new_route_for(route, &block)
-- 
1.7.10.2


Mime
View raw message