removed unwanted return in client_ctl_client_conns_id.ServerHTTP()

This commit is contained in:
hyung-hwan 2024-12-08 17:19:20 +09:00
parent f87db5ac41
commit 0bc765b72a

View File

@ -288,7 +288,6 @@ func (ctl *client_ctl_client_conns_id) ServeHTTP(w http.ResponseWriter, req *htt
default: default:
status_code = http.StatusBadRequest; w.WriteHeader(status_code) status_code = http.StatusBadRequest; w.WriteHeader(status_code)
} }
return
done: done:
// TODO: need to handle x-forwarded-for and other stuff? this is not a real web service, though // TODO: need to handle x-forwarded-for and other stuff? this is not a real web service, though
@ -629,6 +628,7 @@ func (ctl *client_ctl_client_conns_id_routes_id_peers_id) ServeHTTP(w http.Respo
default: default:
status_code = http.StatusBadRequest; w.WriteHeader(status_code) status_code = http.StatusBadRequest; w.WriteHeader(status_code)
} }
done: done:
c.log.Write("", LOG_DEBUG, "[%s] %s %s %d", req.RemoteAddr, req.Method, req.URL.String(), status_code) // TODO: time taken c.log.Write("", LOG_DEBUG, "[%s] %s %s %d", req.RemoteAddr, req.Method, req.URL.String(), status_code) // TODO: time taken
return return