Also send content

This commit is contained in:
Peter Stuifzand 2018-01-30 21:29:19 +01:00
parent 8759b87957
commit 7167b61c5e

View File

@ -50,7 +50,7 @@ func (handler *subscriptionHandler) handlePublish(w http.ResponseWriter, r *http
if subs, e := handler.Subscribers[topic]; e {
for _, sub := range subs {
req, err := http.NewRequest("POST", sub.Callback, nil)
req, err := http.NewRequest("POST", sub.Callback, strings.NewReader(string(feedContent)))
if err != nil {
log.Printf("While creating request to %s: %s", sub.Callback, err)
continue