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
Add an accepts: option as a companion to provides:. This option would compare the media-type of a request to the list of MIME types. This is the Sinatra condition I am currently using:
set(:accepts) do |*types|
mime_types = types.map { |t| mime_type(t) }.compact
condition { mime_types.include?(request.media_type) }
end
The text was updated successfully, but these errors were encountered:
Add an
accepts:
option as a companion toprovides:
. This option would compare the media-type of a request to the list of MIME types. This is the Sinatra condition I am currently using:The text was updated successfully, but these errors were encountered: