Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Update browser_use/browser/watchdogs/downloads_watchdog.py

Magnus Müller7eb30f68426b
diff --git a/browser_use/browser/watchdogs/downloads_watchdog.py b/browser_use/browser/watchdogs/downloads_watchdog.py
index eeec2555d..a5a5ba53c 100644
--- a/browser_use/browser/watchdogs/downloads_watchdog.py
+++ b/browser_use/browser/watchdogs/downloads_watchdog.py
@@ -654,7 +654,7 @@ class DownloadsWatchdog(BaseWatchdog):
return False
async def _check_network_headers_for_pdf(self, target_id: TargetID) -> bool:
- """Check network response headers for PDF content-type."""
+ """Infer PDF via navigation history/URL; headers are not available post-navigation in this context."""
try:
import asyncio