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 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
- head["Content-Type"] = "text/html"
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
@@ -2,4 +2,4 @@
2
2
  gem_name: mongrel_page_cache_handler
3
3
  package: mongrel_page_cache_handler
4
4
  project: magrathea
5
- version: 1.6.10
5
+ version: 1.6.11
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.10
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-07 00:00:00 -04:00
17
+ date: 2008-04-24 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20