Skip to content

Commit

Permalink
Update fsttest/recorder.go
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Walters (cee-dub) <cameron.walters@fastly.com>
  • Loading branch information
fgsch and cee-dub authored Jun 28, 2024
1 parent af333b6 commit c7df4c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fsttest/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ func NewRecorder() *ResponseRecorder {

// Header returns the response headers to mutate within a handler.
func (r *ResponseRecorder) Header() fsthttp.Header {
if !r.headersDone {
if !r.headersSent {

Check failure on line 32 in fsttest/recorder.go

View workflow job for this annotation

GitHub Actions / lint

r.headersSent undefined (type *ResponseRecorder has no field or method headersSent)

Check failure on line 32 in fsttest/recorder.go

View workflow job for this annotation

GitHub Actions / integration-tests (1.22, 0.31.2, latest)

r.headersSent undefined (type *ResponseRecorder has no field or method headersSent)

Check failure on line 32 in fsttest/recorder.go

View workflow job for this annotation

GitHub Actions / integration-tests (1.22, 0.31.2, latest)

r.headersSent undefined (type *ResponseRecorder has no field or method headersSent)

Check failure on line 32 in fsttest/recorder.go

View workflow job for this annotation

GitHub Actions / integration-tests (1.21, 0.29.0, 21.0.1)

r.headersSent undefined (type *ResponseRecorder has no field or method headersSent)

Check failure on line 32 in fsttest/recorder.go

View workflow job for this annotation

GitHub Actions / integration-tests (1.21, 0.29.0, 21.0.1)

r.headersSent undefined (type *ResponseRecorder has no field or method headersSent)
return r.HeaderMap
}
// Once the send the headers, return a copy so any changes
// are discarded.
// Once sent, return a copy so any changes are discarded.
return r.HeaderMap.Clone()
}

Expand Down

0 comments on commit c7df4c4

Please sign in to comment.