mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vminsert: return StatusNoContent http response for /api/v1/import
to be consistent with other insert handlers
This commit is contained in:
parent
05ec8afb3a
commit
8b56b849e9
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
|
||||||
httpserver.Errorf(w, "error in %q: %s", r.URL.Path, err)
|
httpserver.Errorf(w, "error in %q: %s", r.URL.Path, err)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
w.WriteHeader(http.StatusNoContent)
|
||||||
return true
|
return true
|
||||||
case "influx/write", "influx/api/v2/write":
|
case "influx/write", "influx/api/v2/write":
|
||||||
influxWriteRequests.Inc()
|
influxWriteRequests.Inc()
|
||||||
|
|
Loading…
Reference in a new issue