From 677f5047a9b4172628908d29ee35c342bfc4f2ee Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 10 Mar 2024 12:45:02 +0500 Subject: [PATCH] Fix dummy trasformer --- encodings.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/encodings.go b/encodings.go index fbaac61..b1ba29b 100644 --- a/encodings.go +++ b/encodings.go @@ -30,6 +30,7 @@ type DummyTransformer struct{} func (e *DummyTransformer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { copy(dst, src) - return len(dst), len(src), nil + return len(src), len(src), nil } + func (e *DummyTransformer) Reset() {}