Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Return only true or false

  • Loading branch information...
commit 709298dfbd97b6fa3c002bacbbd563ecc222a32a 1 parent 1e15a10
Alex Bredariol Grilo authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  app/models/search_result.rb
3  app/models/search_result.rb
View
@@ -126,9 +126,8 @@ def response_body_present?
end
def response_body_text?
- if @response.content_type
+ @response.content_type.respond_to?(:split) &&
@response.content_type.split('/').first == 'text'
- end
end
def response_body
Please sign in to comment.
Something went wrong with that request. Please try again.