Skip to content

Bug: wrong HTTP header key 'WebSearch' instead of 'User-Agent' in web_search.py #1334

@Ricardo-M-L

Description

@Ricardo-M-L

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions