Commit a257568
committed
handle http error before closing the body
This should help with this:
panic: runtime error: invalid memory address or nil pointer dereference
See example in the http docs:
https://golang.org/pkg/net/http/1 parent 7ec4b4e commit a257568
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
0 commit comments