mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-13 13:50:28 +05:30
Force use HTTP 1.1 temporarily. (#177)
This commit is contained in:
parent
f774d23fef
commit
9c926d3183
@ -76,8 +76,8 @@ public class Constants {
|
|||||||
if (key.startsWith("hibernate"))
|
if (key.startsWith("hibernate"))
|
||||||
hibernateProperties.put(key, value);
|
hibernateProperties.put(key, value);
|
||||||
});
|
});
|
||||||
Builder builder = HttpClient.newBuilder().followRedirects(Redirect.NORMAL).version(Version.HTTP_2);
|
Builder builder = HttpClient.newBuilder().followRedirects(Redirect.NORMAL).version(Version.HTTP_1_1);
|
||||||
Builder builder_noredir = HttpClient.newBuilder().followRedirects(Redirect.NEVER).version(Version.HTTP_2);
|
Builder builder_noredir = HttpClient.newBuilder().followRedirects(Redirect.NEVER).version(Version.HTTP_1_1);
|
||||||
if (HTTP_PROXY != null && HTTP_PROXY.contains(":")) {
|
if (HTTP_PROXY != null && HTTP_PROXY.contains(":")) {
|
||||||
String host = StringUtils.substringBefore(HTTP_PROXY, ":");
|
String host = StringUtils.substringBefore(HTTP_PROXY, ":");
|
||||||
String port = StringUtils.substringAfter(HTTP_PROXY, ":");
|
String port = StringUtils.substringAfter(HTTP_PROXY, ":");
|
||||||
|
Loading…
Reference in New Issue
Block a user