mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 10:18:59 +02:00
small update on reverse proxy and xforwarded middlewares
This commit is contained in:
@@ -34,6 +34,10 @@ func NewModifyResponseWriter(w http.ResponseWriter, r *http.Request, f ModifyRes
|
||||
}
|
||||
}
|
||||
|
||||
func (w *ModifyResponseWriter) Unwrap() http.ResponseWriter {
|
||||
return w.w
|
||||
}
|
||||
|
||||
func (w *ModifyResponseWriter) WriteHeader(code int) {
|
||||
if w.headerSent {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user