lib/tito/oauth2_middleware.rb in tito-0.1.1 vs lib/tito/oauth2_middleware.rb in tito-0.1.3

- old
+ new

@@ -11,10 +11,10 @@ params = query_params(env[:url]) if token.respond_to?(:empty?) && !token.empty? env[:url].query = build_query params - env[:request_headers][AUTH_HEADER] ||= %(Token token="#{token}") + env[:request_headers][AUTH_HEADER] ||= %(Bearer #{token}) end @app.call env end \ No newline at end of file