diff --git a/CHANGELOG.md b/CHANGELOG.md index b24c438f..46457ce6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - master - New - Changed + - Fixed the way the "size" is calculated, it should match content-length now - Fixed output writing so it doesn't silently fail if it needs to create directories recursively - v1.3.0 diff --git a/pkg/runner/simple.go b/pkg/runner/simple.go index e13415ea..e59288a4 100644 --- a/pkg/runner/simple.go +++ b/pkg/runner/simple.go @@ -13,7 +13,6 @@ import ( "strconv" "strings" "time" - "unicode/utf8" "github.com/ffuf/ffuf/pkg/ffuf" ) @@ -147,7 +146,7 @@ func (r *SimpleRunner) Execute(req *ffuf.Request) (ffuf.Response, error) { } if respbody, err := ioutil.ReadAll(httpresp.Body); err == nil { - resp.ContentLength = int64(utf8.RuneCountInString(string(respbody))) + resp.ContentLength = int64(len(string(respbody))) resp.Data = respbody }