From 8b56b849e90b0c24967dd72a6289691dbaad02f4 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 19 Dec 2019 01:21:49 +0200 Subject: [PATCH] app/vminsert: return StatusNoContent http response for `/api/v1/import` to be consistent with other insert handlers --- app/vminsert/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/vminsert/main.go b/app/vminsert/main.go index 8cc558a8a..bef9f8c2f 100644 --- a/app/vminsert/main.go +++ b/app/vminsert/main.go @@ -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()