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

Disable parameter decoding #413

Open
sramasubramanian opened this issue Aug 12, 2014 · 3 comments
Open

Disable parameter decoding #413

sramasubramanian opened this issue Aug 12, 2014 · 3 comments
Labels

Comments

@sramasubramanian
Copy link

For route matcher -
get("/info/:requestKey") {
val requestKey = params("requestKey")
val name = params.get("name").getOrElse("")
}

For a request like "/info/k%E2%82%ACy?name%3Dhell%C3%B8w%C3%B8rld", I see

requestKey = k€y
name = helløwørld

But, I'd like to see

requestKey = k%E2%82%ACy
name = hell%C3%B8w%C3%B8rld

My code relies on the fact that the parameters are not decoded, so that I can optionally skip decoding certain characters. What options do I have?

@casualjim
Copy link
Member

you can get the path info with: request.getPathInfo

@sramasubramanian
Copy link
Author

I'm not sure if the path info is useful here as that's decoded as well.

pathInfo = /k€y

I'd like to access parameters before decoding or skip the parameter decoding.

@casualjim
Copy link
Member

@seratch seratch added the core label Feb 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants