eagle icon indicating copy to clipboard operation
eagle copied to clipboard

pkg/net/http error

Open mszero opened this issue 4 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

这个包不能用,本身有问题。你测试下看看,运行不起来。

--- FAIL: TestHttp (0.00s) panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x1339e7d]

1.16

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

mszero avatar Jul 08 '21 08:07 mszero

可以贴一下使用代码的方式。

自测可以使用,具体可以看下新增的test文件: client_test.go, 里面有个unit test

@mszero

qloog avatar Jul 08 '21 14:07 qloog