Skip to content

Commit

Permalink
should not do this at late hours
Browse files Browse the repository at this point in the history
  • Loading branch information
NitescuLucian committed Mar 30, 2023
1 parent 5275442 commit e67f8d8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions edirb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e67f8d8

Please sign in to comment.