Skip to content

Commit 2875cf1

Browse files
committed
Merge branch 'master' of github.com:wordnik/wordnik-ruby
Conflicts: lib/wordnik/response.rb
2 parents 75d0301 + ece252d commit 2875cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/wordnik/response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def headers
5757
# Extract the response format from the header hash
5858
# e.g. {'Content-Type' => 'application/json'}
5959
def format
60-
headers['Content-Type'].split(";").first.split("/").last.to_s
60+
headers['Content-Type'].split(";").first.strip.split("/").last.to_s
6161
end
6262

6363
def json?
@@ -91,4 +91,4 @@ def persisted?
9191
end
9292

9393
end
94-
end
94+
end

0 commit comments

Comments
 (0)