Project

General

Profile

« Previous | Next » 

Revision f932cce2

Added by Shlomi Zadok about 9 years ago

fixes #10471 - use Rails' force_ssl

View differences:

app/controllers/api/base_controller.rb
include ApplicationShared
protect_from_forgery
force_ssl :if => :require_ssl?
skip_before_filter :verify_authenticity_token, :unless => :protect_api_from_forgery?
before_filter :set_default_response_format, :authorize, :add_version_header, :set_gettext_locale
......
protected
def require_ssl?
SETTINGS[:require_ssl]
end
def not_found(options = nil)
not_found_message = {}

Also available in: Unified diff