Skip to content

Commit

Permalink
More acceptable header parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Mar 13, 2012
1 parent f25f994 commit 31b81ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/recurly/resource.rb
Expand Up @@ -348,9 +348,9 @@ def create! attributes = {}
# @param response [Net::HTTPResponse]
def from_response response
case response['Content-Type']
when 'application/pdf'
when %r{application/pdf}
response.body
else # when 'application/xml'
else # when %r{application/xml}
record = from_xml response.body
record.instance_eval { @etag, @response = response['ETag'], response }
record
Expand Down

0 comments on commit 31b81ce

Please sign in to comment.