当遇到https请求时,Typecho_Http_Client_Adapter_Socket应当抛出异常或者直接die掉。 #508

Open
future0906 opened this Issue Oct 17, 2016 · 1 comment

Projects

None yet

2 participants

@future0906

当开启全站https并且没有curl库时,开启地址重写功能会提示检查失败,实际上服务器的重写功能已经配置成功。

跟踪代码发现Widget/Options/Permalink.php里面会调用Typecho_Http_Client_Adapter_Socket作为检查请求类;而Typecho_Http_Client_Adapter_Socket不能正确处理https请求,导致nginx返回400(http的请求发送到https端口),从而提示检查失败。

@joyqi
Member
joyqi commented Nov 30, 2016

自动检查并非是开启重写功能的必要条件,你可以强行开启它

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment