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 response modifier initial building #4719

Merged
merged 1 commit into from Apr 4, 2019
Merged

Conversation

mpl
Copy link
Collaborator

@mpl mpl commented Apr 3, 2019

What does this PR do?

This PR fixes the middleware names passed as argument to the response modifier middleware Builder. The Builder Build method is expecting qualified names (prefixed with the provider type), so that it can check their existence in the configs map. Before this change, the Build method was receiving non-prefixed names, so the middleware names were never found in the configs map.

Motivation

While investigating #4708 we found out that custom response headers supposedly added with the response modifier middleware never seemed to actually show up in the responses.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: Ludovic Fernandez ldez@users.noreply.github.com

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

Copy link
Member

@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

Copy link
Member

@jbdoumenjou jbdoumenjou 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 merged commit 49563e6 into traefik:v2.0 Apr 4, 2019
v2 automation moved this from To review to Done Apr 4, 2019
@mpl mpl deleted the respmod branch April 4, 2019 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants