mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
fix type www-form-urlencoded -> x-www-form-urlencoded
This commit is contained in:
parent
ac16c6c44d
commit
4dbd9536ec
1 changed files with 3 additions and 3 deletions
|
|
@ -686,7 +686,7 @@ func (s *InboundService) AddInboundClient(data *model.Inbound) (bool, error) {
|
||||||
}
|
}
|
||||||
s.xrayApi.Close()
|
s.xrayApi.Close()
|
||||||
|
|
||||||
s.syncWithSlaves("POST", "panel/inbounds/api/addClient", "application/www-form-urlencoded", data, nil)
|
s.syncWithSlaves("POST", "panel/inbounds/api/addClient", "application/x-www-form-urlencoded", data, nil)
|
||||||
|
|
||||||
return needRestart, tx.Save(oldInbound).Error
|
return needRestart, tx.Save(oldInbound).Error
|
||||||
}
|
}
|
||||||
|
|
@ -777,7 +777,7 @@ func (s *InboundService) DelInboundClient(inboundId int, clientId string) (bool,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
s.syncWithSlaves(http.MethodPost, "panel/inbounds/api", "application/www-form-urlencoded", nil, nil, strconv.Itoa(inboundId), "delClient", clientId)
|
s.syncWithSlaves(http.MethodPost, "panel/inbounds/api", "application/x-www-form-urlencoded", nil, nil, strconv.Itoa(inboundId), "delClient", clientId)
|
||||||
|
|
||||||
return needRestart, db.Save(oldInbound).Error
|
return needRestart, db.Save(oldInbound).Error
|
||||||
}
|
}
|
||||||
|
|
@ -955,7 +955,7 @@ func (s *InboundService) UpdateInboundClient(data *model.Inbound, clientId strin
|
||||||
needRestart = true
|
needRestart = true
|
||||||
}
|
}
|
||||||
|
|
||||||
s.syncWithSlaves("POST", "panel/inbounds/api/updateClient", "application/www-form-urlencoded", data, nil, clientId)
|
s.syncWithSlaves("POST", "panel/inbounds/api/updateClient", "application/x-www-form-urlencoded", data, nil, clientId)
|
||||||
|
|
||||||
return needRestart, tx.Save(oldInbound).Error
|
return needRestart, tx.Save(oldInbound).Error
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue