nov/rack-oauth2 — pull request #38 by aocole (2013-11-21 02:07:29+00:00)
Title: Fix error when Authorization header is blank

Hi nov. Great work on this library. I have a fix for a small bug @andreas-kupries found.

If a request is made to a bearer token resource with a blank
(but present) Authorization: header, rack-oauth2 will cause
rack to throw a "undefined method `downcase' for nil:NilClass"
error. This checks for a nil value and treats the request as if
the header was not provided, preventing the error.