This commit is contained in:
parent
d58d21d491
commit
2cda6afee9
|
@ -225,16 +225,16 @@ func (handler *subscriptionHandler) ServeHTTP(w http.ResponseWriter, r *http.Req
|
|||
|
||||
if mode == "subscribe" {
|
||||
err = handler.handleSubscription(w, r)
|
||||
log.Println("saving subscribe failed: %v", err)
|
||||
log.Printf("saving subscribe failed: %v", err)
|
||||
return
|
||||
} else if mode == "unsubscribe" {
|
||||
err = handler.handleUnsubscription(w, r)
|
||||
log.Println("saving unsubscribe failed: %v", err)
|
||||
log.Printf("saving unsubscribe failed: %v", err)
|
||||
return
|
||||
} else if mode == "publish" {
|
||||
log.Println("hub.mode=publish received")
|
||||
err = handler.handlePublish(w, r)
|
||||
log.Println("handling publish failed: %v", err)
|
||||
log.Printf("handling publish failed: %v", err)
|
||||
return
|
||||
} else {
|
||||
http.Error(w, "Unknown hub.mode", 400)
|
||||
|
|
Loading…
Reference in New Issue
Block a user