8000 环境变量中的参数怎么无法使用 · Issue #293 · Postcatlab/postcat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shui0855 opened this issue Apr 6, 2023 · 2 comments · Fixed by #294
Closed

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

shui0855 opened this issue Apr 6, 2023 · 2 comments · Fixed by #294
Assignees
Labels
bug Something isn't working

Comments

@shui0855
Copy link
shui0855 commented Apr 6, 2023

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

@scarqin
Copy link
Collaborator
scarqin commented Apr 6, 2023

image
@shui0855 复现了,我们这周发布一个修复版本

@scarqin scarqin added the bug Something isn't working label Apr 6, 2023
@scarqin scarqin self-assigned this Apr 6, 2023
@scarqin scarqin linked a pull request Apr 6, 2023 that will close this issue
scarqin added a commit that referenced this issue Apr 6, 2023
scarqin added a commit that referenced this issue Apr 6, 2023
* feat: modal tips when delete mock

* fix: Fixes #293

* fix: curl import error and style error

* fix: variable query multiple times

---------

Co-authored-by: scarqin <1054139596@qq.com>
@scarqin
Copy link
Collaborator
scarqin commented Apr 6, 2023

@shui0855 已经发布啦

yZaio added a commit that referenced this issue May 5, 2023
* feat: modal tips when delete mock

* fix: Fixes #293

* fix: curl import error and style error

* fix: variable query multiple times

---------

Co-authored-by: scarqin <1054139596@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0