apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

bug: proxy-rewrite plugin's headers option is invalid

Open idbeta opened this issue 6 years ago • 4 comments

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • [ ] Question or discussion
  • [x] Bug
  • [ ] Requirements
  • [ ] Feature or performance improvement
  • [ ] Other

Already set, but invalid image image

actual result:

127.0.0.1 - - [12/Nov/2020 16:29:50] "GET /test/home.html HTTP/1.1" 200 -
Host: 127.0.0.1
X-Real-IP: 127.0.0.1
X-Forwarded-For: 127.0.0.1
X-Forwarded-Proto: http
X-Forwarded-Host: 127.0.0.1
X-Forwarded-Port: 9080
User-Agent: curl/7.54.0
Accept: */*

idbeta avatar Nov 12 '20 08:11 idbeta

Not sure what happened 😂

Is this data invalid when sending the request?

image

What's the expected data format?

juzhiyuan avatar Nov 12 '20 09:11 juzhiyuan

headers should be format to

{
X-Api-version: 'v1'
}

let me check the related code😂

liuxiran avatar Nov 12 '20 10:11 liuxiran

ok!

juzhiyuan avatar Nov 12 '20 10:11 juzhiyuan

if that is a bug, should we remove checking label and add bug label?

@idbeta I think you can provide more information, especially information about warning or error messages. Then the developer can confirm this bug easier. Many thx for your report

membphis avatar Nov 12 '20 16:11 membphis