JustinBeckwith / linkinator

🐿 Scurry around your site and find all those broken links.
MIT License
1.04k stars 80 forks source link

Comment at odds with code #605

Closed rrthomas closed 4 months ago

rrthomas commented 5 months ago

In index.ts we find the following:

            // Some sites don't respond to a stream response type correctly, especially with a HEAD. Try a GET with a text response type
            if (
                (response === undefined ||
                    response.status < 200 ||
                    response.status >= 300) &&
                !options.crawl
            ) {
                response = await request<Readable>({
                    method: 'GET',
                    url: options.url.href,
                    responseType: 'stream'

Note that responseType is 'stream', although the comment implies that it should be 'text'.

github-actions[bot] commented 4 months ago

:tada: This issue has been resolved in version 6.0.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket: