Permalink
Browse files

[routing] Use type from accept_entry directly in 1.4.0

  • Loading branch information...
nesquena committed Mar 11, 2013
1 parent 17cd1be commit 68e58b4609ec528fc0ea9f8f95ace36dec9b2920
Showing with 1 addition and 1 deletion.
  1. +1 −1 padrino-core/lib/padrino-core/application/routing.rb
@@ -772,7 +772,7 @@ def provides(*types)
condition do
mime_types = types.map { |t| mime_type(t) }
url_format = params[:format].to_sym if params[:format]
accepts = request.accept.map { |a| a.to_str.split(";")[0].strip }
accepts = request.accept.map { |a| a.to_str }
# per rfc2616-sec14:
# Assume */* if no ACCEPT header is given.

0 comments on commit 68e58b4

Please sign in to comment.