Skip to content

route directive: ignore empty header values#753

Merged
istio-testing merged 1 commit intoistio:release-1.1from
kyessenov:ignore_empty_header_values
Jan 10, 2019
Merged

route directive: ignore empty header values#753
istio-testing merged 1 commit intoistio:release-1.1from
kyessenov:ignore_empty_header_values

Conversation

@kyessenov
Copy link
Copy Markdown
Contributor

Per istio/istio#10801, empty header values are rarely desirable. We can use the empty value as a special conditional value.

/assign @geeknoid

Signed-off-by: Kuat Yessenov kuat@google.com

Signed-off-by: Kuat Yessenov <kuat@google.com>
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Jan 10, 2019
@kyessenov kyessenov requested review from douglas-reid and mandarjog and removed request for andraxylia and costinm January 10, 2019 19:05
Copy link
Copy Markdown
Contributor

@douglas-reid douglas-reid left a comment

Choose a reason for hiding this comment

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

/lgtm

So, if you want to "zero out" a header, the right way is to REMOVE, and not to set to "", correct ?

@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: douglas-reid, kyessenov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@istio-testing istio-testing merged commit f818794 into istio:release-1.1 Jan 10, 2019
@kyessenov
Copy link
Copy Markdown
Contributor Author

@douglas-reid Yes. I don't think there is no good use case for setting an empty header, so no useful case is eliminated with this change.

yangminzhu pushed a commit to yangminzhu/api that referenced this pull request Jan 15, 2019
Signed-off-by: Kuat Yessenov <kuat@google.com>
louiscryan pushed a commit to louiscryan/api that referenced this pull request Jan 16, 2019
Signed-off-by: Kuat Yessenov <kuat@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants