fix(): Migrates to using the original request's headers
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Elia el Lazkani 2023-07-11 23:56:26 +02:00
parent 4fbddcf7d6
commit 8ff09cc23d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func (rp *ReverseProxy) reverseProxyHandler(rw http.ResponseWriter, req *http.Re
fmt.Printf("[sidoxy] Reverse proxy setting the following return headers\n")
// return Header response
for key, values := range originServerResponse.Header {
for key, values := range req.Header {
for _, value := range values {
fmt.Printf("[sidoxy] \t%v: %v\n", key, value)
rw.Header().Set(key, value)