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:
parent
27ea5fc469
commit
a443e8e0c6
3 changed files with 4 additions and 4 deletions
4
bjo.lock
4
bjo.lock
|
|
@ -3,9 +3,9 @@
|
||||||
(package (name (bjogui)) (version "0.1.0")
|
(package (name (bjogui)) (version "0.1.0")
|
||||||
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjogui")))
|
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjogui")))
|
||||||
(commit "c8a121030e666044766e523aec8cf42f02343f0d645e1b42316f6607374cef23"))
|
(commit "c8a121030e666044766e523aec8cf42f02343f0d645e1b42316f6607374cef23"))
|
||||||
(package (name (bjomarks)) (version "0.2.0")
|
(package (name (bjomarks)) (version "0.2.1")
|
||||||
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks")))
|
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks")))
|
||||||
(commit "6fc668e9082ca0065dc795fbb865d17cdd9e2092626f093caf4ec95728224ad6"))
|
(commit "fd4c0f8bb019761ea7ac58644fe43d32134f46ef0aa4a85bf50915183709d779"))
|
||||||
(package (name (bjosodium)) (version "0.2.0")
|
(package (name (bjosodium)) (version "0.2.0")
|
||||||
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjosodium")))
|
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjosodium")))
|
||||||
(commit "2be75d9b22691b44d571ef4fa8516390ca9a47a4d64a3d92b39d6f9878627b13"))))
|
(commit "2be75d9b22691b44d571ef4fa8516390ca9a47a4d64a3d92b39d6f9878627b13"))))
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
(depends
|
(depends
|
||||||
(package (name (bjomarks))
|
(package (name (bjomarks))
|
||||||
(version (version-at-least "0.2.0"))
|
(version (version-at-least "0.2.1"))
|
||||||
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks"))))
|
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks"))))
|
||||||
(package (name (bjogui))
|
(package (name (bjogui))
|
||||||
(version (version-at-least "0.1.0"))
|
(version (version-at-least "0.1.0"))
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,7 @@
|
||||||
(if (string-contains? seen "\r\n\r\n")
|
(if (string-contains? seen "\r\n\r\n")
|
||||||
(path-of seen)
|
(path-of seen)
|
||||||
(match (read-some in)
|
(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))))))
|
(None (path-of seen))))))
|
||||||
|
|
||||||
;; One request, one page. The path is added to `asked`.
|
;; One request, one page. The path is added to `asked`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue