From af333b6f52fab1bb8f916ee6c99200abbfff344d Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Fri, 28 Jun 2024 10:16:34 +0100 Subject: [PATCH] Add comment --- fsttest/recorder.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsttest/recorder.go b/fsttest/recorder.go index d7d4817..2283da9 100644 --- a/fsttest/recorder.go +++ b/fsttest/recorder.go @@ -32,6 +32,8 @@ func (r *ResponseRecorder) Header() fsthttp.Header { if !r.headersDone { return r.HeaderMap } + // Once the send the headers, return a copy so any changes + // are discarded. return r.HeaderMap.Clone() }