if model := r.Header.Get("X-Model"); model != "" { xModel = normalizeSpaces(model) } else { xModel = normalizeSpaces(gjson.GetBytes(bodyBytes, "model").String()) }