code: func headers(header http.Header) map[string]string {
  	v := make(map[string]string)
  	for k, values := range header {
  		// Skip authorization headers
  		if strings.EqualFold(k, "Authorization") || strings.EqualFold(k, "X-Registry-Config") || strings.EqualFold(k, "X-Registry-Auth") {
  			continue
  		}
  		for _, val := range values {
  			v[k] = val
  		}
  	}
  	return v
  }
docs: // headers returns flatten version of the http headers excluding authorization