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