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 05ec8afb3a
commit 8b56b849e9

View file

@ -136,6 +136,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 "influx/write", "influx/api/v2/write":
influxWriteRequests.Inc()