Permalink
Browse files

Merge branch 'master' of github.com:wordnik/wordnik-ruby

Conflicts:
	lib/wordnik/response.rb
  • Loading branch information...
2 parents 75d0301 + ece252d commit 2875cf1722a6d04e044442b30e655d658f294401 @fehguy fehguy committed Mar 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/wordnik/response.rb
View
@@ -57,7 +57,7 @@ def headers
# Extract the response format from the header hash
# e.g. {'Content-Type' => 'application/json'}
def format
- headers['Content-Type'].split(";").first.split("/").last.to_s
+ headers['Content-Type'].split(";").first.strip.split("/").last.to_s
end
def json?
@@ -91,4 +91,4 @@ def persisted?
end
end
-end
+end

0 comments on commit 2875cf1

Please sign in to comment.