会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
再去流浪
我煮酒待故人来
首页
新随笔
管理
2016年1月27日
Python的Flask强制使http跳转到https页面
摘要: @app.before_request def before_request(): if request.url.startswith('http://'): url = request.url.replace('http://', 'https://', 1) code = 301 return
阅读全文
posted @ 2016-01-27 12:03 再去流浪
阅读(1773)
评论(0)
推荐(0)
编辑