mirror of https://github.com/k3s-io/k3s
Merge pull request #67578 from chanjarster/issue-67561
Automatic merge from submit-queue (batch tested with PRs 67578, 68154, 68162, 65545). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. Fixes #67561 Multiple same headers got wrong result on gcr.io/google-containers/echoserver:1.10 **What this PR does / why we need it**: Fix a bug of echoserver **Which issue(s) this PR fixes**: Fixes #67561 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```pull/8/head
commit
d26f853870
|
@ -1 +1 @@
|
||||||
2.1
|
2.2
|
||||||
|
|
|
@ -52,7 +52,14 @@ Request Information:
|
||||||
|
|
||||||
Request Headers:
|
Request Headers:
|
||||||
{% for i, key in ipairs(keys) do %}
|
{% for i, key in ipairs(keys) do %}
|
||||||
{{key}}={{headers[key]}}
|
{% local val = headers[key] %}
|
||||||
|
{% if type(val) == "table" then %}
|
||||||
|
{% for i = 1,#val do %}
|
||||||
|
{{key}}={{val[i]}}
|
||||||
|
{% end %}
|
||||||
|
{% else %}
|
||||||
|
{{key}}={{val}}
|
||||||
|
{% end %}
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
Request Body:
|
Request Body:
|
||||||
|
|
Loading…
Reference in New Issue