Hi, I am running the RestExpress in SSL mode using
server.setSSLContext(context);
Everything is working fine except that when Making https requests, the base URL shows http
Example:
$ curl -k https://localhost:8080
"Unresolvable URL: http://localhost:8080/"
The response is correct but URL returned in the message is http instead of https. Any quick fix to get around this ?
/** * Get the protocol of the request. * * @return "http" or "https," etc. lower-case. */ public String getProtocol() { return httpRequest.protocolVersion().protocolName().toLowerCase(); }