mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix proxy bug in dev server
This commit is contained in:
parent
78c55437e3
commit
e404e2d37f
|
@ -257,7 +257,7 @@ public class CodeServlet extends HttpServlet {
|
||||||
try {
|
try {
|
||||||
URL url = new URL(proxyUrl);
|
URL url = new URL(proxyUrl);
|
||||||
proxyPort = url.getPort();
|
proxyPort = url.getPort();
|
||||||
proxyHost = proxyPort != 80 ? url.getHost() + ":" + proxyPort : url.getHost();
|
proxyHost = proxyPort >= 0 ? url.getHost() + ":" + proxyPort : url.getHost();
|
||||||
proxyProtocol = url.getProtocol();
|
proxyProtocol = url.getProtocol();
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user