fix: adapt to webclaw-tls v0.1.1 HeaderMap API change

Response.headers() now returns &http::HeaderMap instead of
&HashMap<String, String>. Updated FetchResult, is_pdf_content_type,
is_document_content_type, is_bot_protected, and all related tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Valerio 2026-03-30 12:09:50 +02:00
parent 68b9406ff5
commit 199dab6dfa
6 changed files with 62 additions and 51 deletions

1
Cargo.lock generated
View file

@ -3113,6 +3113,7 @@ name = "webclaw-fetch"
version = "0.3.0"
dependencies = [
"calamine",
"http",
"quick-xml 0.37.5",
"rand 0.8.5",
"serde",