Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error properly when lbcd fails to connect in HTTP POST mode
in the case where you're e.g. trying to connect to an invalid address, the err vars in handleSendPostMessage() were being shadowed inside the for loop. if c.httpClient.Do() returned an error, that error never got returned upstream. then ioutil.ReadAll(httpResponse.Body) would get a nil pointer dereference. this fixes that case.
- Loading branch information