Skip to content

Unable to create params with dots in them because sinatra-respond_to always assumes they refer to mime-type. #2

@ashaw

Description

@ashaw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions