Skip to content

Conversation

@philboeselager
Copy link
Contributor

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the url.replace(" ", "%20") necessary here? The test data does not seem to contain a space, or am I misunderstanding something?

If in general characters that need encoding should be supported here, wouldn't a general approach like calling URLEncoder.encode(String s, String enc) with key.toString() when building the URL be safer?

And can we get rid of the .toASCIIString() to support keys like organisations?q=Köln, if that makes any sense?

@cboehme cboehme self-assigned this Oct 26, 2016
@cboehme cboehme closed this in 2ea12b6 Oct 28, 2016
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

Successfully merging this pull request may close these issues.

3 participants