forward content-type headers

This commit is contained in:
Kevin Pham
2023-11-20 15:49:39 -06:00
parent 5d46adc486
commit 6222476684

View File

@@ -232,7 +232,7 @@ func (chain *ProxyChain) Execute() error {
return errors.New("no context set")
}
// Return request back to client
chain.Context.Set("content-type", "text/html")
chain.Context.Set("content-type", chain.Response.Header.Get("content-type"))
return chain.Context.SendStream(body)
//return chain.Context.SendStream(body)