gobuster icon indicating copy to clipboard operation
gobuster copied to clipboard

error on running gobuster: 301 response missing Location header

Open christophetd opened this issue 4 years ago • 3 comments

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!

christophetd avatar Jun 25 '21 07:06 christophetd

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.

firefart avatar Aug 21 '21 09:08 firefart

Error: error on running gobuster: Get "https://.../...": 301 response missing Location header

wwallace avatar Feb 26 '22 01:02 wwallace

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)

firefart avatar Jun 10 '22 18:06 firefart

go 1.19 is now released so this bug should be fixed

firefart avatar Oct 22 '22 20:10 firefart