Skip to content

feature: add a new option, decide if we remove the "/" at the end of …#1766

Merged
membphis merged 3 commits into
apache:masterfrom
membphis:delete-uri-end-slash
Jul 29, 2020
Merged

feature: add a new option, decide if we remove the "/" at the end of …#1766
membphis merged 3 commits into
apache:masterfrom
membphis:delete-uri-end-slash

Conversation

@membphis

Copy link
Copy Markdown
Member

…the URI before route mathing.

fix #1765

@membphis

Copy link
Copy Markdown
Member Author

@apache/apisix-committers The default value, which one is better? true or false?

delete_uri_tail_slash: true

@ShiningRush

Copy link
Copy Markdown
Contributor

I think false would be better, no tricks when matching route except user want.
So can ensure users know what happen when them set true

@membphis

Copy link
Copy Markdown
Member Author

I think false would be better, no tricks when matching route except user want.
So can ensure users know what happen when them set true

Ok, I have updated the processing logic.

@membphis
membphis merged commit f9a8a26 into apache:master Jul 29, 2020
@membphis
membphis deleted the delete-uri-end-slash branch July 29, 2020 11:25
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.

feature: add a new option, decide if we remove the "/" at the end of the URI before route mathing

3 participants