Browse files

don't delete purge tags header

  • Loading branch information...
1 parent 9b43400 commit 6851313ba0410339be00300d8a6b6769cb92bb28 @svenfuchs committed Oct 3, 2010
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/rack/cache/tags.rb
View
7 lib/rack/cache/tags.rb
@@ -33,16 +33,15 @@ def call(env)
end
protected
-
+
def store(*args)
self.class.store.store(*args)
end
-
+
def purge(headers)
urls = self.class.store.purge(headers[PURGE_TAGS_HEADER])
headers[PURGE_HEADER] = urls unless urls.empty?
- headers.delete(PURGE_TAGS_HEADER)
end
end
end
-end
+end

0 comments on commit 6851313

Please sign in to comment.