Skip to content

Commit

Permalink
- return all headers from the ensembled response back to the client (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
romanwozniak authored Feb 15, 2022
1 parent c130348 commit 51d407e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/router/missionctl/handlers/http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ func (h *httpHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
payload := resp.Body()

// Write the json response to the writer
rw.Header().Set("Content-Type", resp.Header().Get("Content-Type"))
for key := range resp.Header() {
rw.Header().Set(key, resp.Header().Get(key))
}
rw.Header().Set(turingReqIDHeaderKey, turingReqID)
rw.WriteHeader(http.StatusOK)
contentLength, err := rw.Write(payload)
Expand Down

0 comments on commit 51d407e

Please sign in to comment.