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.
- data/VERSION +1 -1
- data/lib/rack-xslview.rb +3 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/rack-xslview.rb
CHANGED
@@ -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
|
-
|
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
|
|