Exemple #1
0
func setRespVersion(resp *http.Response) {
	if resp.Header == nil {
		resp.Header = make(map[string]string)
	}
	resp.Header["Vault-Build"] = sys.Build
	resp.Header["Vault-Proto"] = Version
}
Exemple #2
0
func setRespHop(resp *http.Response, h int) {
	if resp.Header == nil {
		resp.Header = make(map[string]string)
	}
	resp.Header["Vault-Hop"] = strconv.Itoa(h)
}