sunheyi6 commented on PR #11024: URL: https://github.com/apache/apisix/pull/11024#issuecomment-1989893371
> * If you actually run the example, you won't get the expected response. It doesn't address the issue you opened earlier. Yes, I actually ran it and it was indeed not the expected result.The actual results are as follows ```shell shy@LAPTOP-OJLO0M82:~$ curl "http://127.0.0.1:9080/headers" { "headers": { "Accept": "*/*", "Host": "httpbin.org", "User-Agent": "curl/7.68.0", "X-Amzn-Trace-Id": "Root=1-65efbcd4-2398c1e53ce9ff957b63c1fb", "X-Forwarded-Host": "127.0.0.1" } } shy@LAPTOP-OJLO0M82:~$ curl "http://127.0.0.1:9080/headers" { "headers": { "accept": "*/*", "accept-encoding": "gzip, br", "cf-connecting-ip": "45.194.20.22", "cf-ipcountry": "HK", "cf-ray": "863053e13ff8e68a", "cf-visitor": "{\"scheme\":\"https\"}", "connection": "Keep-Alive", "content-type": "application/json", "host": "mock.api7.ai", "user-agent": "curl/7.68.0", "x-application-owner": "API7.ai", "x-forwarded-for": "172.19.0.1", "x-forwarded-host": "127.0.0.1", "x-forwarded-port": "9080", "x-forwarded-proto": "https", "x-real-ip": "45.194.20.22", "X-Application-Owner": "API7.ai", "Content-Type": "application/json" } ``` I'm not sure why it's happening. One of the reasons I raised this PR is to ask for help understanding why it's like this. Of course, I didn't explain it clearly at the beginning, which is my fault. Sorry. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
