mongrel_page_cache_handler 1.6.10 → 1.6.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cache_server.rb +5 -1
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +2 -2
data/lib/cache_server.rb
CHANGED
@@ -10,7 +10,11 @@ module Mongrel
|
|
10
10
|
if f
|
11
11
|
puts "We found: #{file_path} in the cache, let's render it"
|
12
12
|
response.start(200, true) do |head, out|
|
13
|
-
|
13
|
+
if file_path =~ /\.xml$/
|
14
|
+
head["Content-Type"] = "text/xml"
|
15
|
+
else
|
16
|
+
head["Content-Type"] = "text/html"
|
17
|
+
end
|
14
18
|
out.write(f)
|
15
19
|
end
|
16
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongrel_page_cache_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markbates
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2008-04-
|
17
|
+
date: 2008-04-24 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|