fix(proxy-rewrite): when conf.headers are missing,conf.method can make effect#6300
Conversation
|
@liangliang4ward Better to add some test cases to cover it. |
spacewander
left a comment
There was a problem hiding this comment.
The fix LGTM.
You can learn how to write tests via https://github.com/apache/apisix/blob/master/docs/en/latest/internal/testing-framework.md and the current test
apisix/t/plugin/proxy-rewrite3.t
Lines 87 to 129 in ebe91aa
in proxy-rewrite3.t ,I thought the |
Let's add a test to prove your suspect. The test is passed in the CI. |
this PR will to solve this issue; |
add a test case |
|
Merged. Thanks! |
What this PR does / why we need it:
when conf.headers are missing,conf.method can make effect
Pre-submission checklist: