Add User-Agent to requests #17

Merged
emma merged 1 commits from BlankParenthesis/hopper:add-user-agent into main 2022-12-24 03:47:48 +00:00

1 Commits

Author SHA1 Message Date
[ ] 9064888265 Add User-Agent to requests
Modrinth strongly encourages (via the following response header) that
access to their services be done with a uniquely identifying user-agent
string.

> "x-user-agent-notice": "!!!!! Hey, you! Yes, **you**! You need to
> change your User-Agent ASAP or you may be blocked from using
> Modrinth's services! For more information see the documentation:
> https://docs.modrinth.com/api-spec/#section/User-Agents !!!!!"

The one added here follows the documentation recommendation for the
"best" example of a user-agent string.
2022-12-09 05:13:43 +00:00