From fa862d2cb6ccb0f778f31a9d4c81b7aac1b35b64 Mon Sep 17 00:00:00 2001 From: shaoying Date: Sat, 2 Mar 2019 11:16:52 +0800 Subject: [PATCH] fix web.spide cookie Change-Id: Ie05dffd1356ae844a1426bf123c17224c61f91aa --- src/contexts/web/web.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/contexts/web/web.go b/src/contexts/web/web.go index eab47307..095b0444 100644 --- a/src/contexts/web/web.go +++ b/src/contexts/web/web.go @@ -441,11 +441,10 @@ var Index = &ctx.Context{Name: "web", Help: "应用中心", m.Cmd("ctx.config", "spide", strings.Join(arg[:3], "."), arg[3]) case "cookie", "header": - if len(arg) == 3 { - m.Cmdy("ctx.config", "spide", strings.Join(arg[:3], ".")) - break + if len(arg) > 3 { + m.Cmd("ctx.config", "spide", strings.Join(arg[:3], "."), arg[3]) } - m.Cmdy("ctx.config", "spide", strings.Join(arg[:3], "."), arg[3]) + m.Cmdy("ctx.config", "spide", strings.Join(arg[:3], ".")) default: m.Cmd("ctx.config", "spide", strings.Join(arg[:2], "."), arg[2]) }