rack-xslview 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rack-xslview.rb +3 -2
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -22,8 +22,9 @@ module Rack
22
22
 
23
23
  # No matter what, @app will be called
24
24
  status, headers, body = original_response = @app.call(env)
25
-
26
- return original_response if (status == 304 || status == 204)
25
+
26
+ exluded_status = Array[204, 301, 302, 304]
27
+ return original_response if exluded_status.include?(status)
27
28
 
28
29
  return original_response unless headers["Content-Type"].to_s.match(/(ht|x)ml/)
29
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-xslview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Lash