Hi. I'm use go reverse proxy in some project and have a question https://cs.opensource.google/go/go/+/refs/tags/go1.17.2:src/net/http/httputil/reverseproxy.go;l=323 why headers when copied added to already written? Why copyHeader do Add method for header and not Set ? For example - I have middleware in http server that set some headers, when in some http handler i'm use reverse proxy feature it add other headers from upstream and i have duplicate headers. This is not so bad, but in case of CORS - this breaks. So i need to cleanup headers from upstream before run ServeHTTP from proxy handler.
-- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CACaajQu9jAJ%2B_8%2Bui_Aki_ck4Nga_BzViG%3DwoCgBfukZ7Efzyw%40mail.gmail.com.