Skip to content

cleanup(profiles): special case default handling of unrecognized query param vals #1306

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 2 commits into from
Nov 4, 2018

Conversation

ethanresnick
Copy link
Member

Before, if a profile was applied with a query parameter that had an unrecognized value, the profile was ignored by default. This makes the default to fail with a 400 Bad Request instead. I think this better reflects the semantics that, when using query parameters, the client is trying to force the server to apply the profile, or fail the request.

@ethanresnick ethanresnick requested a review from dgeb October 16, 2018 16:09
@ethanresnick
Copy link
Member Author

@wimleers Wanted to make sure you saw this

Copy link
Member

@dgeb dgeb left a comment

Choose a reason for hiding this comment

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

@ethanresnick Just needs some minor tweaks to improve clarity - looks good overall.

Per @dgeb’s suggestions
@ethanresnick
Copy link
Member Author

@dgeb Ok, I've applied your suggestions. Take a look!

Copy link
Member

@dgeb dgeb left a comment

Choose a reason for hiding this comment

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

@ethanresnick looks good now - thanks!

@dgeb dgeb merged commit db8ac13 into gh-pages Nov 4, 2018
@dgeb dgeb deleted the profile-errors-tweaks branch November 4, 2018 21:48
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy