Send arguments form variables
This commit is contained in:
parent
202bcaab3f
commit
2d47da5ddc
|
@ -92,10 +92,9 @@ func (h *hubIncomingBackend) CreateFeed(topic string) int64 {
|
||||||
q.Add("hub.callback", fmt.Sprintf("https://microsub.stuifzandapp.com/incoming/%d", id))
|
q.Add("hub.callback", fmt.Sprintf("https://microsub.stuifzandapp.com/incoming/%d", id))
|
||||||
q.Add("hub.topic", topic)
|
q.Add("hub.topic", topic)
|
||||||
q.Add("hub.secret", secret)
|
q.Add("hub.secret", secret)
|
||||||
hub.RawQuery = q.Encode()
|
|
||||||
|
|
||||||
log.Printf("POST %s\n", hub)
|
log.Printf("POST %s\n", hub)
|
||||||
req, err := http.NewRequest("POST", hub.String(), nil)
|
req, err := http.NewRequest("POST", hub.String(), q)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("new request: %s\n", err)
|
log.Printf("new request: %s\n", err)
|
||||||
return -1
|
return -1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user