Skip to content

fix: response-rewrite plugin can't add only one character#9372

Merged
juststillthinking merged 2 commits into
apache:masterfrom
LiteSun:sy/fix/response-rewrite
May 5, 2023
Merged

fix: response-rewrite plugin can't add only one character#9372
juststillthinking merged 2 commits into
apache:masterfrom
LiteSun:sy/fix/response-rewrite

Conversation

@LiteSun

@LiteSun LiteSun commented Apr 26, 2023

Copy link
Copy Markdown
Member

Description

fix response-rewrite plugin can't add only one character

Fixes #9223

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

--- request
GET /t
--- response_body
passed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you need to verify whether the header is valid?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@soulbird Hi, this PR only fixes the issue of not being able to configure a single character and adds test coverage, which header can be verified to have been covered by the previous tests, not what this PR needs to do. 🤔

@juststillthinking
juststillthinking merged commit 3997716 into apache:master May 5, 2023
AlinsRan pushed a commit to AlinsRan/apisix that referenced this pull request Jun 25, 2023
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.

bug: response-rewrite : The format validation for headers.add is unreasonable.

3 participants