From e67f8d884e26637ac253ae9f979c5923425ffff4 Mon Sep 17 00:00:00 2001 From: NitescuLucian Date: Thu, 30 Mar 2023 04:26:15 +0300 Subject: [PATCH] should not do this at late hours --- edirb/main.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/edirb/main.go b/edirb/main.go index c76b69e..9eebdc8 100644 --- a/edirb/main.go +++ b/edirb/main.go @@ -113,15 +113,7 @@ func main() { // handle error return } - var buf bytes.Buffer - _, err = io.Copy(&buf, resp.Body) - if err != nil { - // handle error - return - } - bodyLength := buf.Len() - - + bodyLength := len(body) // this aproximates to the nearest hundreds so that you will not duplicate the outputs bodyLength = ((bodyLength + 50) / 100) * 100