Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use content-negotiation only for known formats #28

Open
Swatinem opened this issue Jul 27, 2011 · 1 comment
Open

Ability to use content-negotiation only for known formats #28

Swatinem opened this issue Jul 27, 2011 · 1 comment

Comments

@Swatinem
Copy link

My usecase is as follows:
I want my resource Ids/Names to be human readable, with all the special chars and dots they include.
I do have a “champions/Dr. Mundo.png”
Thanks to the patch in pull request 27, it does work now when I include a format. So “Dr. Mundo.png” becomes “Dr. Mundo”. Same for .json.

But I want to use “champions/Dr. Mundo” as URL without any appended format, showing the default html.
I could just make it “champions/Dr. Mundo.html” but I don’t want to have that ugly .html everywhere.

So I want the format to be either .png or .json, but not mess up my resource Id otherwise.

@tj
Copy link
Member

tj commented Aug 22, 2011

yeah I'd like to remove the format content-negotiation stuff, or whitelist like you say, it's too brittle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants