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've noticed that processing application/json;q=invalid,application/xml;q=0.5 would set the Grape::Env::API_FORMAT to xml when it should be json. Unfortunately, the RFC isn't clear when q is not a float. Nonetheless the default value is 1.0 and Rack applies it when q is not a float.
My recommendation would be to follow Rack's implementation an probably use its best_q_match function instead of our own.
The text was updated successfully, but these errors were encountered:
I've noticed that processing
application/json;q=invalid,application/xml;q=0.5
would set theGrape::Env::API_FORMAT
toxml
when it should bejson
. Unfortunately, the RFC isn't clear whenq
is not a float. Nonetheless the default value is 1.0 and Rack applies it whenq
is not a float.My recommendation would be to follow Rack's implementation an probably use its
best_q_match
function instead of our own.The text was updated successfully, but these errors were encountered: