Skip to content

Commit bbcb58b

Browse files
authored
Merge pull request #313 from intercom/elk/media_type
Use media_type instead of content_type
2 parents 40ecba4 + 9f88f73 commit bbcb58b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/intercom-rails/auto_include_filter.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ def response
5555
end
5656

5757
def html_content_type?
58-
response.content_type == 'text/html'
58+
if response.respond_to?(:media_type)
59+
response.media_type == 'text/html'
60+
else
61+
response.content_type == 'text/html'
62+
end
5963
end
6064

6165
def response_has_closing_body_tag?

0 commit comments

Comments
 (0)