Add validationURL

This commit is contained in:
Peter Stuifzand 2018-01-30 21:54:01 +01:00
parent 418a997fbf
commit 09ec4a556e

View File

@ -102,7 +102,7 @@ func (handler *subscriptionHandler) handleUnsubscription(w http.ResponseWriter,
q.Add("hub.topic", topic)
q.Add("hub.challenge", ourChallenge)
validationURL.RawQuery = q.Encode()
if validateURL(sub.Callback, ourChallenge) {
if validateURL(validationURL.String(), ourChallenge) {
subs = append(subs[:i], subs[i+1:]...)
break
}