aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/main.go b/main.go
index 210c4f7..cdd6b11 100644
--- a/main.go
+++ b/main.go
@@ -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 {