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

Fill initial bid request with all possible values from query parameters and headers during AMP processing #1353

Merged
merged 3 commits into from
Jul 5, 2021

Conversation

schernysh
Copy link
Contributor

No description provided.

@schernysh schernysh requested a review from rpanchyk July 5, 2021 13:10
*/
private static Integer debugFromQueryStringParam(HttpRequestContext httpRequest) {
final String debug = httpRequest.getQueryParams().get(DEBUG_REQUEST_PARAM);
return Objects.equals(debug, "1") ? Integer.valueOf(1) : Objects.equals(debug, "0") ? 0 : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor. We can use next construction here:

return StringUtils.equalsAny(debug, "0", "1") ? Integer.valueOf(debug) : null;

@rpanchyk rpanchyk merged commit ea6f28f into master Jul 5, 2021
@rpanchyk rpanchyk deleted the amp-fill-debug-in-initial-request branch July 5, 2021 13:42
nickluck9 pushed a commit that referenced this pull request Aug 9, 2021
…rs and headers during AMP processing (#1353)

* Fill initial bid request with all possible values from query parameters and headers during AMP processing

* Drop request.ext validation in AMP (since it is always present now) and simplify AmpRequestFactory

* Cleanup after refactoring
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
…rs and headers during AMP processing (#1353)

* Fill initial bid request with all possible values from query parameters and headers during AMP processing

* Drop request.ext validation in AMP (since it is always present now) and simplify AmpRequestFactory

* Cleanup after refactoring
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
…rs and headers during AMP processing (#1353)

* Fill initial bid request with all possible values from query parameters and headers during AMP processing

* Drop request.ext validation in AMP (since it is always present now) and simplify AmpRequestFactory

* Cleanup after refactoring
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