Skip to content

Conversation

@notapirate
Copy link

Create function getUserAgent to construct a user agent string and use it for Wikimedia requests as required by Wikimedia.
The string is formatted as suggested by Wikimedias User Agent Policy, see https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy.
Closes #166

The function getUserAgent uses the app informations to construct the string "unsplash/<version> (<website>; <contact>)" to be used as user agent for provider requests.

Signed-off-by: notapirate <notapirate@users.noreply.github.com>
Signed-off-by: notapirate <notapirate@users.noreply.github.com>
@notapirate
Copy link
Author

This is now obsolete, PR #168 fixes this problem too, closing.

@notapirate notapirate closed this Sep 10, 2025
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.

Wikimedia providers don't provide images

1 participant