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

Can't handle spaces (e.g. #7 revisited) #12

Open
ghost opened this issue Aug 17, 2014 · 2 comments
Open

Can't handle spaces (e.g. #7 revisited) #12

ghost opened this issue Aug 17, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 17, 2014

#7 doesn't seem to be completely fixed. My query url is: "http://localhost:6767/face/suggest/?q=rules+to+old+maid" and it returns no results. If I manually encode the space instead to "%20" then I get results. e.g. "http://localhost:6767/face/suggest/?q=rules%20to%20old%20maid". I am running cpp-libface behind a reverse proxy in nginx. I noticed DDG passes the url as "+". Even a workaround would be nice; whether it be in nginx or cpp-libface.

Thanks!

@ghost
Copy link
Author

ghost commented Aug 17, 2014

I raise this issue because jquery's ajax encodes spaces with "+".

@ghost
Copy link
Author

ghost commented Aug 28, 2014

It's probably easier and more efficient to change it in cpp-libface than to do some crazy rewrite rule in nginx, no?

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

0 participants