Skip to content

Commit

Permalink
use a set of intermediate variables that make response_type_okay_to_m…
Browse files Browse the repository at this point in the history
…odify clearer
  • Loading branch information
knzconnor authored and Luke Melia committed May 31, 2010
1 parent 82619ad commit 5a6bd6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rack/bug/toolbar.rb
Expand Up @@ -25,7 +25,8 @@ def call(env)
end

def response_type_okay_to_modify?
@response.ok? && MIME_TYPES.include?(@response.content_type.split(";").first)
content_type, charset = @response.content_type.split(";")
@response.ok? && MIME_TYPES.include?(content_type)
end

def builder
Expand Down

0 comments on commit 5a6bd6b

Please sign in to comment.