mirror of
				https://github.com/distribution/distribution.git
				synced 2025-11-04 11:53:18 +00:00 
			
		
		
		
	The goal is to free up the distribution/registry package to include common registry types. This moves the webapp definitions out of the way to allow for this change in the future. Signed-off-by: Stephen J Day <stephen.day@docker.com>
		
			
				
	
	
		
			12 lines
		
	
	
		
			154 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			154 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// +build go1.4
 | 
						|
 | 
						|
package handlers
 | 
						|
 | 
						|
import (
 | 
						|
	"net/http"
 | 
						|
)
 | 
						|
 | 
						|
func basicAuth(r *http.Request) (username, password string, ok bool) {
 | 
						|
	return r.BasicAuth()
 | 
						|
}
 |