Skip to content

Commit

Permalink
write source statusCode to response
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Aug 28, 2024
1 parent b13fc18 commit 0909c30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proxy/stream_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ func Handler(w http.ResponseWriter, r *http.Request) {
w.Header().Set(k, val)
}
}
w.WriteHeader(resp.StatusCode)

if debug {
utils.SafeLogPrintf(r, nil, "[DEBUG] Headers set for response: %v\n", w.Header())
}
Expand Down

0 comments on commit 0909c30

Please sign in to comment.