mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
formally remove IE9 support
This commit is contained in:
parent
3251bcb405
commit
e1f90d12f1
9 changed files with 10 additions and 38 deletions
|
@ -9,9 +9,6 @@ class UploadsController < ApplicationController
|
|||
client_id = params[:client_id]
|
||||
synchronous = is_api? && params[:synchronous]
|
||||
|
||||
# HACK FOR IE9 to prevent the "download dialog"
|
||||
response.headers["Content-Type"] = "text/plain" if request.user_agent =~ /MSIE 9/
|
||||
|
||||
if type == "avatar"
|
||||
if SiteSetting.sso_overrides_avatar || !SiteSetting.allow_uploaded_avatars
|
||||
return render json: failed_json, status: 422
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue