mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
remove old hack to set content type to application/html
This prevents attachments to be seen as something different than html content. For example, message/rfc822 for email was being replaced by application/html causing wrong application to be started on the client.
This commit is contained in:
parent
8a378aa2c4
commit
f7f10b8a61
1 changed files with 1 additions and 7 deletions
|
|
@ -19,13 +19,7 @@ class ApplicationController < ActionController::Base
|
|||
append_before_filter :set_group_view_by
|
||||
prepend_before_filter :login_required
|
||||
prepend_before_filter :enable_mobile_content_negotiation
|
||||
after_filter :set_charset
|
||||
|
||||
# By default, sets the charset to UTF-8 if it isn't already set
|
||||
def set_charset
|
||||
headers["Content-Type"] ||= "text/html; charset=UTF-8"
|
||||
end
|
||||
|
||||
|
||||
def set_locale
|
||||
locale = params[:locale] # specifying a locale in the request takes precedence
|
||||
locale = locale || prefs.locale unless current_user.nil? # otherwise, the locale of the currently logged in user takes over
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue