mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
FIX: Other content types like images are fine
This commit is contained in:
parent
4c690f7089
commit
b8d78b33c6
@ -46,7 +46,6 @@ class FinalDestination
|
||||
return @uri if head.status == 405
|
||||
|
||||
if head.status == 200
|
||||
@uri = nil unless FinalDestination.header_for(head, 'content-type') =~ /text\/html/
|
||||
@status = :resolved
|
||||
return @uri
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user