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

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.

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.
BlankParenthesis added 1 commit 2022-12-09 06:06:02 +00:00
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.
emma added the
enhancement
label 2022-12-18 02:04:58 +00:00
emma self-assigned this 2022-12-18 02:05:20 +00:00
emma merged commit 3c87609720 into main 2022-12-24 03:47:48 +00:00
Sign in to join this conversation.
No description provided.