function demo(request,response){
request.getScheme() is returning http instead of returning https.
System.out.println(""+request.getScheme());
}
Run Code Online (Sandbox Code Playgroud)
输出:HTTP
- 正在从main方法调用上面的函数演示但它打印http而不是它应该在互联网服务器上打印https.