lib/wordnik/response.rb in wordnik-4.11 vs lib/wordnik/response.rb in wordnik-4.12

- old
+ new

@@ -55,11 +55,11 @@ end # Extract the response format from the header hash # e.g. {'Content-Type' => 'application/json'} def format - headers['Content-Type'].split("/").last.to_s + headers['Content-Type'].split(";").first.strip.split("/").last.to_s end def json? format == 'json' end @@ -89,6 +89,6 @@ def persisted? false end end -end \ No newline at end of file +end