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
Kubernetes Submit Queue 2018-09-01 03:32:56 -07:00 committed by GitHub
commit d26f853870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -1 +1 @@
2.1 2.2

View File

@ -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: