Add an useragent when downloading unity libraries#546
Closed
miniduikboot wants to merge 1 commit into
Closed
Conversation
Currently users in some countries are blocked from downloading unity libs, although they are able to download the libraries using their browser. Because of this I'm assuming that the combination of country and the lack of an user agent is causing the download to fail. Add an user agent identifying us as BepInEx and hope that makes the request less sus.
Member
|
Did this end up fixing the download issue for the affected users? |
Member
|
I had this tested on multiple occasions, including just now with a fake firefox useragent, and it didn't seem to help with the download issue for affected users. |
Member
|
Closing since this did not work to fix the issue and there doesn't seem to be any reason to merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This adds an user agent to the download request, which is configured to be
BepInEx/+ the version of BepInEx in use.Reporting an OS or pretending to be an actual browser didn't feel right
Motivation and Context
Currently users in some countries are blocked from downloading unity libs, although they are able to download the libraries using their browser. Because of this I'm assuming that the combination of country and the lack of an user agent is causing the download to fail. Add an user agent identifying us as BepInEx and hope that makes the request less sus.
This hopefully fixes what I've been calling the Kazakhstan problem, as reported by me in April last year: https://discord.com/channels/623153565053222947/624272422295568435/968527472377344070 . This issue doesn't appear frequently, but in support channels we only see the tip of the iceberg. So far I've seen users with issues in Kazakhstan (3), Pakistan (1) and Russia (1).
How Has This Been Tested?
Screenshots (if appropriate):
Http server log of the results of step 2:

Types of changes
Checklist: