If I explicitly set a route to capture something into params, such as
get %r{/api/url/(.+[^?])} do
#action
end
and I request something like /api/url/http://someurl.com/somepage.php, that regex should capture dots into params[:captures]. Sinatra-respond_to chokes on the dot and throws: Unknown media type php Try registering the extension with a mime type. Route patterns should take precedence over mime-type sniffing.
If I explicitly set a route to capture something into params, such as
and I request something like /api/url/http://someurl.com/somepage.php, that regex should capture dots into
params[:captures]. Sinatra-respond_to chokes on the dot and throws:Unknown media type php Try registering the extension with a mime type.Route patterns should take precedence over mime-type sniffing.