Revert using fasthttp library to net/http

This commit is contained in:
Cameron Sparr
2017-01-11 16:01:32 +00:00
parent f5d892d7d3
commit a36fd375de
6 changed files with 102 additions and 74 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 {