Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set no-follow-redirects local instead of global
When setting no-follow-redirects for RequestBuilder#getRedirectUrl() (e.g., avatar requests), do so only for this one request. Previously, it was set globally for all requests, then set back to its initial state after the request completed. This should prevent multithreading issues where numerous threads are attempting to alter the global state of HttpURLConnection#setFollowRedirects(). Fixes #94
- Loading branch information