We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2caba2f commit 15244c1Copy full SHA for 15244c1
lib/async/rest/wrapper/form.rb
@@ -34,10 +34,9 @@ def prepare_request(request, payload)
34
end
35
36
def parser_for(response)
37
- if content_type = response.headers["content-type"]
38
- if parser = @content_types[content_type]
39
- return parser
40
- end
+ media_type, _ = response.headers["content-type"].split(";")
+ if media_type && parser = @content_types[media_type]
+ return parser
41
42
43
return super
0 commit comments