2
0
Fork 0
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:
Jeff Atwood 2016-01-02 23:49:52 -08:00
parent 3251bcb405
commit e1f90d12f1
9 changed files with 10 additions and 38 deletions

View file

@ -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