Skip to content

Commit

Permalink
Update lib/async/rest/wrapper/form.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix authored Jan 4, 2025
1 parent 0eb422f commit 7b55df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/async/rest/wrapper/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def prepare_request(request, payload)
end

def parser_for(response)
content_type, _ = response.headers["content-type"].split(";")
if content_type && parser = @content_types[content_type]
media_type, _ = response.headers["content-type"].split(";")
if media_type && parser = @content_types[media_type]
return parser
end

Expand Down

0 comments on commit 7b55df4

Please sign in to comment.