cleanup: stop referencing depreceted HeaderMap field

Remove reference to the deprecated ResponseRecorder.HeaderMap field,
instead calling .Response.Header() to get the same data.

closes #10520
This commit is contained in:
Seth Hoenig
2022-01-12 09:10:25 -06:00
parent 1b719eef68
commit 4b20581dc5
6 changed files with 100 additions and 100 deletions

View File

@@ -50,7 +50,7 @@ func (r *ResponseRecorder) Header() http.Header {
func (r *ResponseRecorder) HeaderMap() http.Header {
r.mu.Lock()
defer r.mu.Unlock()
return r.rr.HeaderMap
return r.rr.Result().Header
}
// Write to the underlying response buffer. Safe to call concurrent with Read.