lib/keycard/request/proxied_attributes.rb in keycard-0.2.3 vs lib/keycard/request/proxied_attributes.rb in keycard-0.2.4

- old
+ new

@@ -16,17 +16,17 @@ client_ip: client_ip } end def user_pid - request.env['HTTP_X_REMOTE_USER'] + get 'HTTP_X_REMOTE_USER' end def user_eid user_pid end def client_ip - (request.env['HTTP_X_FORWARDED_FOR'] || '').split(',').first + safe('HTTP_X_FORWARDED_FOR').split(',').first end end end