deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [1/3] git commit: Core: Removed extra quotes from Rack::ETag output
Date Thu, 30 Aug 2012 09:48:46 GMT
Updated Branches:
  refs/heads/master 3cb424887 -> 33a556a20


Core: Removed extra quotes from Rack::ETag output


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/33a556a2
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/33a556a2
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/33a556a2

Branch: refs/heads/master
Commit: 33a556a20e3d9c9a4c3db74be88b708a7283d6c5
Parents: 7b37194
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Wed Aug 29 13:23:12 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Wed Aug 29 13:23:12 2012 +0200

----------------------------------------------------------------------
 server/lib/sinatra/rack_etag.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/33a556a2/server/lib/sinatra/rack_etag.rb
----------------------------------------------------------------------
diff --git a/server/lib/sinatra/rack_etag.rb b/server/lib/sinatra/rack_etag.rb
index 14a8cd4..95bcc4e 100644
--- a/server/lib/sinatra/rack_etag.rb
+++ b/server/lib/sinatra/rack_etag.rb
@@ -42,7 +42,7 @@ module Rack
 
       if etag_status?(status) && etag_body?(body) && !http_caching?(headers)
         digest, body = digest_body(body)
-        headers['ETag'] = %("#{digest}") if digest
+        headers['ETag'] = digest.to_s if digest
       end
 
       if not headers['Cache-Control'] and digest


Mime
View raw message