如果Ring request map key :scheme
的值为:https
,是否保证HTTPS连接已经建立,没有证书错误?
最佳答案
这个问题可能与您使用的任何 servlet 容器有关,而不是与 ring 有关。
ring-servlet 通过 getting a value from the HttpServletRequest 填充 :scheme
键:
:scheme(关键字(.getScheme 请求))
servlet 规范对 getScheme
只有这样说:
Returns the name of the scheme used to make this request, for example, http, https, or ftp. Different schemes have different rules for constructing URLs, as noted in RFC 1738.
有趣的是,ring-servlet 不会对 servlet 请求调用 isSecure
方法。所以我认为你的问题应该是:
“当使用
关于ssl - Ring 是否请求 { :scheme :https} guarantee a HTTPS connection?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26140811/