boorusphere icon indicating copy to clipboard operation
boorusphere copied to clipboard

fix: Add User-Agent header to fix CDN blockage

Open makisukurisu opened this issue 9 months ago • 1 comments

This pull request addresses the issue #150, by replacing a default User-Agent header from FlutterDownloader to a custom one.

This effect can also be achieved, as described in #150, by simply removing this header altogether, however I have not tried to do this.

I can provide a screenshot of the app interface with working downloads, as well as console output: Downloads screenshot Console screenshot

Feel free to change the user agent, discard other alterations, or just ditch this change in favor of some other edit.

makisukurisu avatar Apr 28 '24 19:04 makisukurisu

Note: If you try to restart older download tasks, they will still fail, I assume because headers are also saved in the database, so retrying the task sends the same request.

makisukurisu avatar Apr 28 '24 19:04 makisukurisu

Thank you so much 😭

nullxception avatar Jul 05 '24 17:07 nullxception