mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-06 22:27:36 +08:00
提交其他方法默认忽略
This commit is contained in:
@@ -268,6 +268,8 @@ func SetStaticResource(method HTTP_METHOD, urlpath string, dirname string) error
|
|||||||
routerData.method = "GET"
|
routerData.method = "GET"
|
||||||
} else if method == METHOD_POST {
|
} else if method == METHOD_POST {
|
||||||
routerData.method = "POST"
|
routerData.method = "POST"
|
||||||
|
}else{
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
routerData.localpath = dirname
|
routerData.localpath = dirname
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user