Skip to content
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

httpx:增加error判断 #264

Merged
merged 3 commits into from
Nov 12, 2024
Merged

httpx:增加error判断 #264

merged 3 commits into from
Nov 12, 2024

Conversation

Jared-lu
Copy link
Contributor

@Jared-lu Jared-lu commented Nov 5, 2024

修改一个bug: http.NewRequestWithContext()返回error时,req为nil,后面调用JSONBody()等方法会发送panic

@flycash
Copy link
Contributor

flycash commented Nov 7, 2024

加一个测试

net/httpx/request_test.go Outdated Show resolved Hide resolved
@flycash flycash merged commit 11624d7 into ecodeclub:dev Nov 12, 2024
3 of 4 checks passed
flycash pushed a commit that referenced this pull request Nov 12, 2024
* httpx:增加error判断

* 补充测试

* 补充方法的测试用例
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants