Add User-Agent to news page HTTP requests
Cloudflare, and some other MITM proxies consider the default Java HttpURLConnection
from Java 1.8 to be an invalid, unsafe request and reject it. This leads to CF returning a
403 on request. This commit adds the same User-Agent that's applied to the other calls, so
that those that front their SKMC launcher news page with Cloudflare can have successful
page loads.
1 parent 7803242 commit 4703b0dedef063ec965c39063dbd5cae10fa3640
@David Lohle David Lohle authored on 19 Feb 2021
Showing 1 changed file
View
launcher/src/main/java/com/skcraft/launcher/swing/WebpagePanel.java