mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
提交其他方法默认忽略
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user