Do not add second Api-Version header
Only append "additional" Docker-Distribution-Api-Version header in case none were received from upstream. Signed-off-by: forkbomber <forkbomber@users.noreply.github.com>master
							parent
							
								
									8149893423
								
							
						
					
					
						commit
						5e61498792
					
				|  | @ -100,8 +100,7 @@ http { | |||
|   ## In the case of nginx performing auth, the header will be unset | ||||
|   ## since nginx is auth-ing before proxying. | ||||
|   map $upstream_http_docker_distribution_api_version $docker_distribution_api_version { | ||||
|     'registry/2.0' ''; | ||||
|     default registry/2.0; | ||||
|     '' 'registry/2.0'; | ||||
|   } | ||||
| 
 | ||||
|   server { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue