Skip to content

Commit

Permalink
v0.3.7, pipe request returns X-Real-Endpoint header
Browse files Browse the repository at this point in the history
  • Loading branch information
superisaac committed Feb 2, 2024
1 parent be330fd commit 9481eb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (self *Endpoint) PipeRequest(rootCtx context.Context, path string, w http.R
}
}
}
w.Header().Set("X-Real-Endpoint", self.Name)
w.WriteHeader(resp.StatusCode)
if written, err := io.Copy(w, resp.Body); err != nil {
self.Log().WithFields(log.Fields{
Expand Down

0 comments on commit 9481eb5

Please sign in to comment.