diff options
-rw-r--r-- | main.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -155,19 +155,15 @@ func handle_connection(reader *bufio.Reader, writer *bufio.Writer) error { data_part := make([]byte, len(tmp)) copy(data_part, tmp) - clog.Debug("e", "e", string(data_part)) next_four, err := reader.Peek(4) if err != nil { return err } if bytes.Equal(next_four, []byte{'\n', '.', '\r', '\n'}) { current_data = slices.Concat(current_data, data_part[:len(data_part)-1]) - clog.Debug("eee", string(next_four)) // shut up go break } - clog.Debug("pre concat", "current_data", string(current_data), "data_part", string(data_part)) current_data = slices.Concat(current_data, data_part) - clog.Debug("post concat", "current_data", string(current_data), "data_part", string(data_part)) } _, err := reader.Discard(4) if err != nil { |