docs(middleware): comments to function BasicAuthForProxy (#3881)
				
					
				
			This commit is contained in:
		
							
								
								
									
										1
									
								
								auth.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								auth.go
									
									
									
									
									
								
							@ -91,6 +91,7 @@ func authorizationHeader(user, password string) string {
 | 
			
		||||
	return "Basic " + base64.StdEncoding.EncodeToString(bytesconv.StringToBytes(base))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// BasicAuthForProxy returns a Basic HTTP Proxy-Authorization middleware.
 | 
			
		||||
func BasicAuthForProxy(accounts Accounts, realm string) HandlerFunc {
 | 
			
		||||
	if realm == "" {
 | 
			
		||||
		realm = "Proxy Authorization Required"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user