From 37d73caf11658205bcc314a4608353e4afc48121 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Mon, 18 Apr 2016 13:26:08 -0700 Subject: [PATCH] extra newline on http POST command fixed #12 --- controller/server/anyreader.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/controller/server/anyreader.go b/controller/server/anyreader.go index cfee1a7a..6865e3cf 100644 --- a/controller/server/anyreader.go +++ b/controller/server/anyreader.go @@ -310,10 +310,6 @@ func (ar *AnyReaderWriter) readHTTPMessage() (*Message, error) { if path == "" { return msg, nil } - if !strings.HasSuffix(path, "\r\n") { - path += "\r\n" - } - nmsg, err := readNativeMessageLine([]byte(path)) if err != nil { return nil, err