Define postRes
This commit is contained in:
parent
961a653160
commit
7e612fd7bc
|
@ -87,7 +87,7 @@ func (handler *subscriptionHandler) handlePublish(w http.ResponseWriter, r *http
|
||||||
signature := mac.Sum(nil)
|
signature := mac.Sum(nil)
|
||||||
postReq.Header.Add("X-Hub-Signature", fmt.Sprintf("sha1=%x", signature))
|
postReq.Header.Add("X-Hub-Signature", fmt.Sprintf("sha1=%x", signature))
|
||||||
}
|
}
|
||||||
postRes, err = client.Do(postReq)
|
postRes, err := client.Do(postReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("While POSTing to %s: %s", sub.Callback, err)
|
log.Printf("While POSTing to %s: %s", sub.Callback, err)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue
Block a user