Skip to content

Do not add the query symbol (?) to urls when the query is empty #43

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

Merged
merged 1 commit into from
Aug 9, 2017

Conversation

mrteye
Copy link
Contributor

@mrteye mrteye commented Aug 8, 2017

Adding a ? to a url when there are no query parameters might be unnecessary. This can cause a usability problem if an application uses a url without a ? to generate an authentication token.

Unless there is an RFC which expects a query symbol to be added to all requests for DELETE, PUT, and PATCH (regardless of query parameters), It might be clearer and cleaner to leave it off.

@mrteye
Copy link
Contributor Author

mrteye commented Aug 8, 2017

This is probably a breaking change for some users.

@amouhzi amouhzi merged commit 19d39f6 into php-mod:master Aug 9, 2017
@amouhzi
Copy link
Member

amouhzi commented Aug 9, 2017

Thank you.

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