Skip to content

Comments

Re-add missing writeheader call in flush#8957

Merged
traefiker merged 2 commits intotraefik:v2.6from
mpl:customwrite
Apr 21, 2022
Merged

Re-add missing writeheader call in flush#8957
traefiker merged 2 commits intotraefik:v2.6from
mpl:customwrite

Conversation

@mpl
Copy link
Collaborator

@mpl mpl commented Apr 20, 2022

What does this PR do?

This PR re-adds a missing writeheader call (that was removed in #8932 ) in Flush that is needed in case Flush is called before anything else.

This PR also simplifies the Write(header) methods of the codeCatcher.

Motivation

Readability and maintainability.

More

- [ ] Added/updated tests
- [ ] Added/updated documentation

Additional Notes

Co-authored-by: Kevin Pollet pollet.kevin@gmail.com

@mpl mpl added this to the next milestone Apr 20, 2022
@mpl mpl requested a review from juliens April 20, 2022 15:25
@kevinpollet kevinpollet changed the base branch from master to v2.6 April 20, 2022 15:53
@kevinpollet kevinpollet added kind/bug/fix a bug fix and removed kind/enhancement a new or improved feature. labels Apr 20, 2022
@kevinpollet kevinpollet modified the milestones: next, 2.6 Apr 20, 2022
@mpl mpl changed the title Simplify codecatcher in custom error middleware re-add missing writeheader call in flush Apr 20, 2022
@mpl mpl changed the title re-add missing writeheader call in flush Re-add missing writeheader call in flush Apr 20, 2022
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
Collaborator

@tomMoulard tomMoulard 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

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants