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 }
func setRespHop(resp *http.Response, h int) { if resp.Header == nil { resp.Header = make(map[string]string) } resp.Header["Vault-Hop"] = strconv.Itoa(h) }