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
The way Response.format uses the req.accepts() function does not seem right according to its implementation. As a result, browser's "Accept:" header may get ignored and the first formatter defined always used.
As of 2.6.3 Restify is looping over a server's acceptable types, checking each with req.accepts( type ) until one gets returned, to select it.
Instead, Request.accepts should be fed the whole array of acceptable types, to then return the most appropriate one.
The text was updated successfully, but these errors were encountered:
The way Response.format uses the
req.accepts()
function does not seem right according to its implementation. As a result, browser's "Accept:" header may get ignored and the first formatter defined always used.As of 2.6.3 Restify is looping over a server's
acceptable
types, checking each withreq.accepts( type )
until one gets returned, to select it.Instead,
Request.accepts
should be fed the whole array of acceptable types, to then return the most appropriate one.The text was updated successfully, but these errors were encountered: