Revert using fasthttp library to net/http

This commit is contained in:
Cameron Sparr
2017-01-11 16:01:32 +00:00
parent 4a5d313693
commit c9e87a39f8
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 {