Skip to content

fix: correct HTTP header key from 'WebSearch' to 'User-Agent'#1335

Open
Ricardo-M-L wants to merge 1 commit into
FoundationAgents:mainfrom
Ricardo-M-L:fix/web-search-user-agent-header
Open

fix: correct HTTP header key from 'WebSearch' to 'User-Agent'#1335
Ricardo-M-L wants to merge 1 commit into
FoundationAgents:mainfrom
Ricardo-M-L:fix/web-search-user-agent-header

Conversation

@Ricardo-M-L
Copy link
Copy Markdown

Features

Influence

  • Only affects app/tool/web_search.py — one line change.

Result

Requests now correctly include the User-Agent header.

The headers dict used 'WebSearch' as the key instead of 'User-Agent',
so the User-Agent header was never sent to the server. This could
cause requests to be blocked by servers that require a User-Agent.
@Ricardo-M-L
Copy link
Copy Markdown
Author

Friendly bump — this fork PR's workflow run is stuck on action_required (GitHub's default for first-time contributors). Could a maintainer approve the workflow so CI can report a verdict? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant