diff --git a/librecursebuster/net.go b/librecursebuster/net.go index 801be05..e5b4c81 100644 --- a/librecursebuster/net.go +++ b/librecursebuster/net.go @@ -116,6 +116,8 @@ func (gState *State) HTTPReq(method, path string, client *http.Client) (resp *ht return resp, err } resp.Body = ioutil.NopCloser(bytes.NewBuffer(body)) + //when the transfer encoding was chunked - this caused the response length to be -1, breaking the soft 404 stuff. Honestly, the HTTP spec is a massive pain in the ass. + resp.ContentLength = int64(len(body)) return resp, err } diff --git a/main.go b/main.go index 60974e1..4ab24f3 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ import ( "github.com/fatih/color" ) -const version = "1.6.10" +const version = "1.6.11" func main() { if runtime.GOOS == "windows" { //lol goos