提交其他方法默认忽略

This commit is contained in:
duanhf2012
2020-01-02 15:59:35 +08:00
parent 04d3be6fe0
commit b851ae2791

View File

@@ -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