Add newline to influx line-protocol if not present

closes #2297
This commit is contained in:
Cameron Sparr
2017-01-23 13:50:52 -08:00
parent c15504c509
commit 22340ad984
4 changed files with 22 additions and 8 deletions

View File

@@ -300,9 +300,6 @@ func (h *HTTPListener) serveWrite(res http.ResponseWriter, req *http.Request) {
}
func (h *HTTPListener) parse(b []byte, t time.Time) error {
if !bytes.HasSuffix(b, []byte("\n")) {
b = append(b, '\n')
}
metrics, err := h.parser.ParseWithDefaultTime(b, t)
for _, m := range metrics {