Add missing error check.

Change-Id: I6fcf6d5d50333ff0c205fd87cdb9430f1bc02c43
This commit is contained in:
Bjoern Rabenstein 2014-07-30 19:02:39 +02:00
parent 96297bcbae
commit b09d588309
1 changed files with 3 additions and 0 deletions

View File

@ -360,6 +360,9 @@ func (r *registry) Push(job, instance, addr, method string) error {
return err
}
req, err := http.NewRequest(method, u, buf)
if err != nil {
return err
}
req.Header.Set(contentTypeHeader, DelimitedTelemetryContentType)
resp, err := http.DefaultClient.Do(req)
if err != nil {