app/vminsert: return StatusNoContent http response for /api/v1/import to be consistent with other insert handlers

This commit is contained in:
Aliaksandr Valialkin 2019-12-19 01:21:49 +02:00
parent bb530a0591
commit d03827c57d

View file

@ -83,6 +83,7 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool {
httpserver.Errorf(w, "error in %q: %s", r.URL.Path, err)
return true
}
w.WriteHeader(http.StatusNoContent)
return true
case "/write", "/api/v2/write":
influxWriteRequests.Inc()