You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using an API and the endpoint returned "application/problem+json" in the Content-Type. I had to create a custom parser
just to make HTTParty parse the response from the API.
Can you guys add this content type in the SupportedFormats?
My custom parser:
class CustomParser < HTTParty::Parser
SupportedFormats.merge!(
{ 'application/problem+json' => :json }
)
end
The text was updated successfully, but these errors were encountered:
Good evening!
I was using an API and the endpoint returned "application/problem+json" in the Content-Type. I had to create a custom parser
just to make HTTParty parse the response from the API.
Can you guys add this content type in the SupportedFormats?
My custom parser:
The text was updated successfully, but these errors were encountered: