lib/raven/interfaces/http.rb in sentry-raven-0.12.0 vs lib/raven/interfaces/http.rb in sentry-raven-0.12.1

- old
+ new

@@ -17,15 +17,15 @@ self.env = {} super(*arguments) end def from_rack(env) - require 'rack' req = ::Rack::Request.new(env) - self.url = req.url.split('?').first + self.url = req.scheme && req.url.split('?').first self.method = req.request_method self.query_string = req.query_string env.each_pair do |key, value| + key = key.to_s #rack env can contain symbols next unless key.upcase == key # Non-upper case stuff isn't either if key.start_with?('HTTP_') # Header http_key = key[5..key.length - 1].split('_').map { |s| s.capitalize }.join('-') self.headers[http_key] = value.to_s