mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Fix subscription cancellation via API
This commit is contained in:
parent
7e1125fc65
commit
fca326d8c7
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ func (api *DatabaseAPI) handler() {
|
||||||
parts := bytes.SplitN(msg, []byte("|"), 3)
|
parts := bytes.SplitN(msg, []byte("|"), 3)
|
||||||
|
|
||||||
// Handle special command "cancel"
|
// Handle special command "cancel"
|
||||||
if len(parts) == 2 && string(parts[1]) != "cancel" {
|
if len(parts) == 2 && string(parts[1]) == "cancel" {
|
||||||
// 125|cancel
|
// 125|cancel
|
||||||
// 127|cancel
|
// 127|cancel
|
||||||
go api.handleCancel(parts[0])
|
go api.handleCancel(parts[0])
|
||||||
|
|
Loading…
Add table
Reference in a new issue