fix: rename audit log docs and datastructure

This commit is contained in:
Harshavardhana
2021-01-26 13:39:55 -08:00
parent 00cff1aac5
commit 6717295e18
3 changed files with 22 additions and 19 deletions

View File

@@ -68,7 +68,9 @@ func ToEntry(w http.ResponseWriter, r *http.Request, reqClaims map[string]interf
for k, v := range wh {
respHeader[k] = strings.Join(v, ",")
}
respHeader[xhttp.ETag] = strings.Trim(respHeader[xhttp.ETag], `"`)
if etag := respHeader[xhttp.ETag]; etag != "" {
respHeader[xhttp.ETag] = strings.Trim(etag, `"`)
}
entry := Entry{
Version: Version,