Skip to content

Commit

Permalink
properly parse mime type with charset (Firefox)
Browse files Browse the repository at this point in the history
  • Loading branch information
mackuba committed Jun 19, 2023
1 parent 897e421 commit f78300a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bad_pigeon/har/har_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def mime_type
end

def has_json_response?
mime_type == 'application/json'
mime_type.gsub(/;.*/, '').strip == 'application/json'
end

def response_body
Expand Down

0 comments on commit f78300a

Please sign in to comment.