Missing default User-Agent from Http fetcher

Created on 16 July 2020, over 4 years ago
Updated 19 July 2024, 4 months ago

Hi,

I am trying to import a feed from a website that requires the User-Agent not be empty/null. I noticed that whenever the get request is made from https://git.drupalcode.org/project/feeds/-/blob/8.x-3.x/src/Feeds/Fetche... the User-Agent is empty. This could be GuzzleHttp issue with this function https://github.com/guzzle/guzzle/blob/6.5/src/Client.php#L287 but I didn't find any issues calling it out there so I am starting here.

I am suggesting for now as a workaround to add the User-Agent to the get function by getting the default from GuzzleHttp client.

Attaching the patch in a new comment. Any other suggestions?

๐Ÿ› Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States dmundra Eugene, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024