我已经将一个 URL 传递给 res.location,它有另一个 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
欢迎任何解决此问题的建议。谢谢