res.location双重编码url查询字符串

时间:2016-04-02 07:09:45

标签: python falcon falconframework

我已经将一个URL传递给res.location,该URL有另一个URL作为查询字符串,当在头文件中设置res.location时,查询字符串中的URL被编码两次。

例如, 传递给res.location的URL是,

res.location = 'http://localhost?redirect_uri=http://somepage'

预期标题: 位置http://localhost?redirect_uri=http%3A%2F%2Fsomepage

实际标题: 位置http://localhost?redirect_uri=http%253A%252F%252Fsomepage

欢迎任何解决此问题的建议。谢谢

0 个答案:

没有答案