rack-iframe-transport 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack_iframe_transport.rb +4 -4
- metadata +1 -1
@@ -35,10 +35,10 @@ module Rack
|
|
35
35
|
|
36
36
|
def metadata
|
37
37
|
meta = {}
|
38
|
-
meta[
|
39
|
-
meta[
|
40
|
-
meta[
|
41
|
-
meta.map {|key,value| "
|
38
|
+
meta['data-status'] = @response.status if @response.respond_to? :status
|
39
|
+
meta['data-statusText'] = @response.status_message if @response.respond_to? :status_message
|
40
|
+
meta['data-type'] = @headers['Content-Type'] if @headers.has_key?('Content-Type')
|
41
|
+
meta.map {|key,value| "#{key}='#{value}'" }.join(' ')
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|