Streaming: Don't send HTTP response to HTTPS request

This commit is contained in:
zzz
2018-05-05 22:21:01 +00:00
parent d851686272
commit d3c28a6b44

View File

@ -290,7 +290,8 @@ class ConnectionManager {
return null; return null;
} }
boolean reset = resp == null || resp.equals("reset") || resp.length() <= 0; boolean reset = resp == null || resp.equals("reset") || resp.length() <= 0 ||
synPacket.getLocalPort() == 443;
boolean http = !reset && "http".equals(resp); boolean http = !reset && "http".equals(resp);
boolean custom = !(reset || http); boolean custom = !(reset || http);
String sendResponse; String sendResponse;