lib/raisin/middleware.rb in raisin-0.0.4 vs lib/raisin/middleware.rb in raisin-0.0.5
- old
+ new
@@ -7,14 +7,11 @@
@vendor = Configuration.version.vendor
end
def call(env)
@env = env
- if verify_accept_header
- @app.call(@env)
- else
- [406, {}, []]
- end
+ verify_accept_header
+ @app.call(@env)
end
private
def verify_accept_header
\ No newline at end of file