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

Remove duplicate slashes from an uri path #173

Merged
merged 2 commits into from
May 9, 2016
Merged

Remove duplicate slashes from an uri path #173

merged 2 commits into from
May 9, 2016

Conversation

lego12239
Copy link
Collaborator

I think i can't say more :-).

Function removes duplicate slashes from a string supplied as a first function
argument.

Signed-off-by: Oleg Nemanov <lego12239@yandex.ru>
Now Req:get(path) returns a path without duplicate slashes.
E.g. uri path "//foo///bar////" becomes "/foo/bar/".

Signed-off-by: Oleg Nemanov <lego12239@yandex.ru>
@lego12239
Copy link
Collaborator Author

lego12239 commented Apr 27, 2016

May be we must do mochiweb_util:normalize_path() before mochiweb_util:unquote?..

IMO, placing normalize_path() before unquote() is not useful.

@etrepum etrepum merged commit ba2ba3e into mochi:master May 9, 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.

2 participants