From b851ae2791341e05162ff2b4a8213f113c0ab181 Mon Sep 17 00:00:00 2001 From: duanhf2012 Date: Thu, 2 Jan 2020 15:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=85=B6=E4=BB=96=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E9=BB=98=E8=AE=A4=E5=BF=BD=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sysservice/originhttp/httpserverervice.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysservice/originhttp/httpserverervice.go b/sysservice/originhttp/httpserverervice.go index 0c0bf2f..3472465 100644 --- a/sysservice/originhttp/httpserverervice.go +++ b/sysservice/originhttp/httpserverervice.go @@ -268,6 +268,8 @@ func SetStaticResource(method HTTP_METHOD, urlpath string, dirname string) error routerData.method = "GET" } else if method == METHOD_POST { routerData.method = "POST" + }else{ + return nil } routerData.localpath = dirname