Skip to content

Commit

Permalink
Revert "Fix: Write response headers from copy of internal response's …
Browse files Browse the repository at this point in the history
…headers (#797)"

This reverts commit d93a6e8.
  • Loading branch information
dleviminzi committed Dec 19, 2024
1 parent 8b095d8 commit 04920a9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/abstractions/endpoint/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,15 +468,8 @@ func (rb *RequestBuffer) handleHttpRequest(req *request, c container) {

defer resp.Body.Close()

responseHeaders := make(http.Header)
for key, values := range resp.Header {
for _, value := range values {
responseHeaders.Add(key, value)
}
}

// Write response headers
for key, values := range responseHeaders {
for key, values := range resp.Header {
for _, value := range values {
req.ctx.Response().Writer.Header().Add(key, value)
}
Expand Down

0 comments on commit 04920a9

Please sign in to comment.