gobuster
gobuster copied to clipboard
error on running gobuster: 301 response missing Location header
When testing an application that responds with 301 status codes without a Location header, gobuster is unable to run.
Expected behavior: Optionally or by default consider a 301 as a redirect, even if it doesn't have a location header
Thoughts? Thanks!
hi @christophetd ,
can you please share the exact error message? I assume this error comes from the golang source itself as a 301 without a Location header is an invalid response.
Error: error on running gobuster: Get "https://.../...": 301 response missing Location header
https://tip.golang.org/doc/go1.19
The HTTP client will handle a 3xx response without a Location header by returning it to the caller, rather than treating it as an error.
this will finally be fixed with go1.19 (not yet released)
go 1.19 is now released so this bug should be fixed