Report the correct endpoint in http logging.

This commit is contained in:
Kyle Isom
2015-07-10 15:02:20 -07:00
parent 27477addba
commit df0db2f926

View File

@@ -134,7 +134,7 @@ func NewServer(process chan<- userRequest, staticPath, addr, certPath, keyPath,
// copy this so reference does not get overwritten
requestType := current
mux.HandleFunc(requestType, func(w http.ResponseWriter, r *http.Request) {
log.Printf("request to %s from %s", current, r.RemoteAddr)
log.Printf("request to %s from %s", requestType, r.RemoteAddr)
queueRequest(process, requestType, w, r)
})
}