From 4dbd9536ec1fe2e31b569e97200b032d4c6df0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Sun, 26 Oct 2025 14:19:58 +0300 Subject: [PATCH] fix type www-form-urlencoded -> x-www-form-urlencoded --- web/service/inbound.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/service/inbound.go b/web/service/inbound.go index 7b63a5a6..525ceb59 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -686,7 +686,7 @@ func (s *InboundService) AddInboundClient(data *model.Inbound) (bool, error) { } 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 } @@ -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 } @@ -955,7 +955,7 @@ func (s *InboundService) UpdateInboundClient(data *model.Inbound, clientId strin 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 }