阅读背景:

Django request.is_secure为重定向方法返回错误的值

来源:互联网 

I am trying to write a ssl redirection utility for django apps (https://bitbucket.org/yilmazhuseyin/django-sslredirector). My problem is when I redirect pages from http to https, I cannot understand that I am on secure connection ( when I call request.is_secure it returns false). I think there is a hack for this , somehow called Webfaction that I cannot really get how it works. here is the is_secure method for webfaction caseI am trying to write a ssl redirection utility




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: