如何在 Api-Username 标头中处理非 ASCII 字符?

感谢 @xbd 的发现 - 这将通过

修复

但在同时…

…您可以通过 Api-User-Id 标头使用用户 ID(如果您有的话,实际上更推荐使用用户 ID 而不是用户名)

curl -X GET "https://your-discourse.com/admin/users.json" \
  -H "Api-Key: your-api-key" \
  -H "Api-User-Id: 123"

3 个赞