econsultancy/rack-strip_http_accept_headers — comment on commit d67ab4b9ae1b93e8c627f1e4683335aed07a460f
File: lib/rack/strip_http_accept_headers.rb line 23
By tomstuart:

Also also, note that `Rack::Request` has an `xhr?` method, so we could use `Rack::Request.new(env).xhr?` instead.