Merge pull request #71 from cloudflare/kyle/http-log-fix

Report the correct endpoint in http logging.
This commit is contained in:
Zi Lin
2015-07-15 12:17:58 -07:00

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)
})
}