Skip to content

Commit b039a68

Browse files
authored
Update README.md
1 parent 37f6d48 commit b039a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func SendWithContext(ctx context.Context, body io.Reader) error {
107107
// Change NewRequest to NewRequestWithContext and pass context it
108108
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "http://example.com", body)
109109
if err != nil {
110-
return nil
110+
return err
111111
}
112112
_, err = http.DefaultClient.Do(req)
113113
if err != nil {

0 commit comments

Comments
 (0)