mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Force use HTTP 1.1 temporarily. (#177)
This commit is contained in:
parent
f774d23fef
commit
9c926d3183
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue