Skip to content

求助 curl -v http://127.0.0.1:8002/static-to-header 返回Head中 无< x-echo-foo: Lua is awesome! #10

@wh15055768834

Description

@wh15055768834

启动日志:
proxy_1 | [2022-03-28 18:01:46.954][7][debug][upstream] [external/envoy/source/common/upstream/strict_dns_cluster.cc:167] DNS refresh rate reset for web_service, refresh rate 5000 ms

curl -v http://127.0.0.1:8002/static-to-header

[root@k8s-master ~]# curl -v http://127.0.0.1:8002/static-to-header

  • About to connect() to 127.0.0.1 port 8002 (#0)
  • Trying 127.0.0.1...
  • Connected to 127.0.0.1 (127.0.0.1) port 8002 (#0)

GET /static-to-header HTTP/1.1
User-Agent: curl/7.29.0
Host: 127.0.0.1:8002
Accept: /

< HTTP/1.1 200 OK
< x-powered-by: Express
< content-type: application/json; charset=utf-8
< content-length: 542
< etag: W/"21e-f89/FNAikln2H1PTo6DTuvtnrDY"
< date: Mon, 28 Mar 2022 17:55:14 GMT
< x-envoy-upstream-service-time: 22
< server: envoy
<
{
"path": "/static-to-header",
"headers": {
"host": "127.0.0.1:8002",
"user-agent": "curl/7.29.0",
"accept": "/",
"x-forwarded-proto": "http",
"x-request-id": "4f0c50fb-55d4-465d-a5f3-654a295e59d4",
"x-envoy-expected-rq-timeout-ms": "15000",
"content-length": "0"
},
"method": "GET",
"body": "",
"fresh": false,
"hostname": "127.0.0.1",
"ip": "::ffff:172.19.0.2",
"ips": [],
"protocol": "http",
"query": {},
"subdomains": [],
"xhr": false,
"os": {
"hostname": "8b9dc5e3f1f0"
}

  • Connection #0 to host 127.0.0.1 left intact

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions