mirror of
https://github.com/safing/portbase
synced 2025-09-02 02:29:59 +00:00
Merge pull request #92 from safing/fix/api-cancel
Fix subscription cancellation via API
This commit is contained in:
commit
5568ef5ed4
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