Follow bytes->string returning a Result

- The test reads response heads with bytes->string/lossy.
- bjomarks is at least 0.2.1, which does the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Linus Björnstam 2026-11-23 14:09:08 +01:00
parent 27ea5fc469
commit a443e8e0c6
3 changed files with 4 additions and 4 deletions

View file

@ -221,7 +221,7 @@
(if (string-contains? seen "\r\n\r\n")
(path-of seen)
(match (read-some in)
((Some bs) (go (str seen (bytes->string bs))))
((Some bs) (go (str seen (bytes->string/lossy bs))))
(None (path-of seen))))))
;; One request, one page. The path is added to `asked`.