mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	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 ```
This commit is contained in:
		@@ -1 +1 @@
 | 
			
		||||
2.1
 | 
			
		||||
2.2
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,14 @@ Request Information:
 | 
			
		||||
 | 
			
		||||
Request Headers:
 | 
			
		||||
{% 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 %}
 | 
			
		||||
 | 
			
		||||
Request Body:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user