playfulprogramming / playfulprogramming/hoof
Modify url-metadata to follow redirects
Open
@femincan is already working on this.
Since Mar 19, 2026.
backend
- Dominant language
- TypeScript
- Stars
- 9
- Forks
- 7
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 23
Description
fetchAsBotStream is used to read only the HTML <head> of pages when fetching URL metadata.
This method currently ignores the response status and does not follow any redirects for the URL. Instead, we want it to follow an input number of redirects, and otherwise fail if a non-200 status is received.
See: undici Dispatcher.stream documentation (onInfo might be the best approach to this?)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.