current fix for x-api-key

This commit is contained in:
benji 2015-09-10 15:43:00 +02:00
parent d215b31739
commit 8da50eb32c

View file

@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base
end
def current_client
@current_client ||= Client.find_by key: request.headers["X_API_KEY"]
@current_client ||= Client.find_by key: (request.headers["X_API_KEY"] || request.headers["HTTP_X_API_KEY"])
end
def current_ability