diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-15 23:56:03 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-16 00:55:33 +0100 |
commit | 546c4718e781f8900ba6498307ccb1e659de5edd (patch) | |
tree | f69b4941a8806cceff656991cffc46c9661654e7 /config/application.rb | |
parent | 3ce6ac0ce2e482bc1f2784c3c7f716172b151902 (diff) |
Localizations for most server-side strings
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/application.rb b/config/application.rb index 5b5e66ca7..6525571cc 100644 --- a/config/application.rb +++ b/config/application.rb @@ -31,16 +31,16 @@ module Mastodon allow do origins '*' - resource '/api/*', :headers => :any, :methods => [:post, :put, :delete, :get, :options], credentials: false - resource '/oauth/token', :headers => :any, :methods => [:post], credentials: false + resource '/api/*', headers: :any, methods: [:post, :put, :delete, :get, :options], credentials: false + resource '/oauth/token', headers: :any, methods: [:post], credentials: false end end config.middleware.use Rack::Attack config.middleware.use Rack::Deflater - config.browserify_rails.source_map_environments += %w[development production] - config.browserify_rails.commandline_options = "--transform [ babelify --presets [ es2015 react ] ] --extension=\".jsx\"" + config.browserify_rails.source_map_environments += %w(development production) + config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] ] --extension=".jsx"' config.to_prepare do Doorkeeper::AuthorizationsController.layout 'auth' @@ -50,7 +50,7 @@ module Mastodon 'Server' => 'Mastodon', 'X-Frame-Options' => 'DENY', 'X-Content-Type-Options' => 'nosniff', - 'X-XSS-Protection' => '1; mode=block' + 'X-XSS-Protection' => '1; mode=block', } end end |