Use POST to subscribe

This commit is contained in:
Peter Stuifzand 2018-03-31 00:20:26 +02:00
parent 537d7f4009
commit 2a26177fb5

View File

@ -94,7 +94,7 @@ func (h *hubIncomingBackend) CreateFeed(topic string) int64 {
q.Add("hub.secret", secret)
hub.RawQuery = q.Encode()
req, err := http.NewRequest("GET", hub.String(), nil)
req, err := http.NewRequest("POST", hub.String(), nil)
if err != nil {
log.Printf("new request: %s\n", err)
return -1