diff --git a/lib/async/rest/wrapper/form.rb b/lib/async/rest/wrapper/form.rb index 504e6fe..cf9216b 100644 --- a/lib/async/rest/wrapper/form.rb +++ b/lib/async/rest/wrapper/form.rb @@ -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