parent
4daf2b6fcb
commit
d6b273332b
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user