Fix error getting remote address in getRequestRemote

This commit is contained in:
Héctor Hurtado
2020-09-10 12:07:25 +02:00
parent 5c1a00e340
commit 99871de601
2 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ func getRequestPath(w http.ResponseWriter, r *http.Request, h *model.Handler) {
func getRequestRemote(w http.ResponseWriter, r *http.Request, h *model.Handler) {
w.Header().Add("Content-Type", "application/octet-stream")
_, _ = w.Write([]byte(r.RemoteAddr))
_, _ = w.Write([]byte(h.Request.RemoteAddr))
}
func getRequestMatches(w http.ResponseWriter, r *http.Request, h *model.Handler) {