mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 20:43:39 +08: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
|
return @uri if head.status == 405
|
||||||
|
|
||||||
if head.status == 200
|
if head.status == 200
|
||||||
@uri = nil unless FinalDestination.header_for(head, 'content-type') =~ /text\/html/
|
|
||||||
@status = :resolved
|
@status = :resolved
|
||||||
return @uri
|
return @uri
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user