Skip to content

环境变量中的参数怎么无法使用 #293

@shui0855

Description

@shui0855

Describe the bug

在环境变量中设置好了参数,然后使用结果,发生异常:
1、在url中使用,如:"/api/act/get/{{id}}",结果返回"HTTP Status 400 – Bad Request",而将{{id}}替换成正常的整数值则结果正常;
2、在http请求头部使用,如:Authorization的值为{{jwt_token}},作用是权限验证,结果为"认证失败",而将{{jwt_token}}换成token的字符串值,结果又是正确的。
这个问题在以前的版本中没发现,之前的api测试时还是是正常的,现在出现问题了。
环境变量在其它的地方的使用,暂未用到,所以还未测试到。

Environment

Postcat-0.5.0.exe 和 Postcat-0.4.2.exe
win10 x64

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions