diff --git a/pkg/proxy/remotehost.go b/pkg/proxy/remotehost.go index 5367046..4d7bc86 100644 --- a/pkg/proxy/remotehost.go +++ b/pkg/proxy/remotehost.go @@ -146,6 +146,7 @@ func (h *RemoteHost) AnnounceExpiry(uids []uint64) { func (h *RemoteHost) Proxy(id uint64, w http.ResponseWriter, r *http.Request) (bool, error) { target := fmt.Sprintf("%s%s", h.httpBase, r.URL.RequestURI()) + log.Printf("proxy target: %s, method: %s", target, r.Method) req, err := http.NewRequestWithContext(r.Context(), r.Method, target, r.Body) if err != nil { http.Error(w, "proxy build error", http.StatusBadGateway)