Don't send empty leaseSeconds
This commit is contained in:
parent
0bfcd8706f
commit
7da531130a
|
|
@ -157,7 +157,9 @@ func (handler *subscriptionHandler) handleSubscription(w http.ResponseWriter, r
|
||||||
q.Add("hub.mode", "subscribe")
|
q.Add("hub.mode", "subscribe")
|
||||||
q.Add("hub.topic", topicURL.String())
|
q.Add("hub.topic", topicURL.String())
|
||||||
q.Add("hub.challenge", ourChallenge)
|
q.Add("hub.challenge", ourChallenge)
|
||||||
|
if leaseSecondsStr != "" {
|
||||||
q.Add("hub.lease_seconds", leaseSecondsStr)
|
q.Add("hub.lease_seconds", leaseSecondsStr)
|
||||||
|
}
|
||||||
validationURL.RawQuery = q.Encode()
|
validationURL.RawQuery = q.Encode()
|
||||||
|
|
||||||
log.Printf("subscribe: async validation with url %s\n", validationURL.String())
|
log.Printf("subscribe: async validation with url %s\n", validationURL.String())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user