lib/garage/strategy/auth_server.rb in the_garage-2.5.0 vs lib/garage/strategy/auth_server.rb in the_garage-2.6.0
- old
+ new
@@ -87,9 +87,11 @@
'Authorization' => @request.authorization,
'Host' => Garage.configuration.auth_server_host,
'Resource-Owner-Id' => @request.headers['Resource-Owner-Id'],
'Scopes' => @request.headers['Scopes'],
'User-Agent' => USER_AGENT,
+ # ActionDispatch::Request#request_id is only available in Rails 5.0 or later.
+ 'X-Request-Id' => @request.uuid,
}.reject {|_, v| v.nil? }
end
def path_with_query
result = uri.path