lib/bullet.rb in bullet-5.4.1 vs lib/bullet.rb in bullet-5.4.2
- old
+ new
@@ -165,11 +165,11 @@
end
responses.join( "\n" )
end
def perform_out_of_channel_notifications(env = {})
- request_uri = env['REQUEST_URI'] || build_request_uri(env)
+ request_uri = build_request_uri(env)
for_each_active_notifier_with_notification do |notification|
notification.url = request_uri
notification.notify_out_of_channel
end
end
@@ -219,9 +219,11 @@
end
end
end
def build_request_uri(env)
+ return "#{env['REQUEST_METHOD']} #{env['REQUEST_URI']}" if env['REQUEST_URI']
+
if env['QUERY_STRING'].present?
"#{env['REQUEST_METHOD']} #{env['PATH_INFO']}?#{env['QUERY_STRING']}"
else
"#{env['REQUEST_METHOD']} #{env['PATH_INFO']}"
end