lib/raven/interfaces/http.rb in sentry-raven-0.2 vs lib/raven/interfaces/http.rb in sentry-raven-0.3
- old
+ new
@@ -8,11 +8,17 @@
property :url, :required => true
property :method, :required => true
property :data
property :query_string
property :cookies
- property :headers, :default => {}
- property :env, :default => {}
+ property :headers
+ property :env
+
+ def initialize(*arguments)
+ self.headers = {}
+ self.env = {}
+ super(*arguments)
+ end
def from_rack(env)
require 'rack'
req = ::Rack::Request.new(env)
self.url = req.url.split('?').first