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

Fix custom headers replacement #2455

Merged
merged 1 commit into from
Nov 23, 2017

Conversation

mmatur
Copy link
Member

@mmatur mmatur commented Nov 23, 2017

What does this PR do?

This PR fix issue with custom headers. Before headers were not overridden but added.
Now if the custom header name is the same as one header name of the request or response, it will be replaced.

Add feature to delete header
X-Custom-Request-Header = "" header X-Custom-Request-Header will be deleted

More

  • Added/updated tests
  • Added/updated documentation

Fixes #1155, #2341

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@mmatur mmatur force-pushed the fix-custom-response-header branch 2 times, most recently from b65476a to 4236e98 Compare November 23, 2017 14:05
Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

LGTM

@mmatur mmatur force-pushed the fix-custom-response-header branch from 4236e98 to 8430be8 Compare November 23, 2017 16:05
Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@traefiker traefiker force-pushed the fix-custom-response-header branch from 8430be8 to ff23daf Compare November 23, 2017 16:26
@traefiker traefiker merged commit f6181ef into traefik:master Nov 23, 2017
@ldez ldez added the kind/enhancement a new or improved feature. label Nov 24, 2017
@Xumeiquer
Copy link

Hi, how is this going? Any plans to release this functionality?

@ldez
Copy link
Contributor

ldez commented Jan 14, 2018

@Xumeiquer the milestone of the PR define the related Træfik version.

@mmatur mmatur deleted the fix-custom-response-header branch March 21, 2018 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add/Remove/Rename response headers
6 participants