fix(): Migrates to using the original request's headers
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4fbddcf7d6
commit
8ff09cc23d
1 changed files with 1 additions and 1 deletions
2
proxy.go
2
proxy.go
|
@ -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")
|
fmt.Printf("[sidoxy] Reverse proxy setting the following return headers\n")
|
||||||
// return Header response
|
// return Header response
|
||||||
for key, values := range originServerResponse.Header {
|
for key, values := range req.Header {
|
||||||
for _, value := range values {
|
for _, value := range values {
|
||||||
fmt.Printf("[sidoxy] \t%v: %v\n", key, value)
|
fmt.Printf("[sidoxy] \t%v: %v\n", key, value)
|
||||||
rw.Header().Set(key, value)
|
rw.Header().Set(key, value)
|
||||||
|
|
Loading…
Reference in a new issue