Bug Description
In app/tool/web_search.py line 122, the HTTP header dictionary uses "WebSearch" as the key instead of the standard "User-Agent". This means the User-Agent header is never actually sent, which can cause web requests to be blocked by servers that check for a valid User-Agent.
Bug solved method
Change "WebSearch" to "User-Agent" on line 122.
Environment information
- OpenManus version or branch: main
Bug Description
In
app/tool/web_search.pyline 122, the HTTP header dictionary uses"WebSearch"as the key instead of the standard"User-Agent". This means the User-Agent header is never actually sent, which can cause web requests to be blocked by servers that check for a valid User-Agent.Bug solved method
Change
"WebSearch"to"User-Agent"on line 122.Environment information