mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
允许其他method
This commit is contained in:
@@ -168,7 +168,7 @@ func Request(method HTTP_METHOD, url string, handle HttpHandle) error {
|
||||
} else if method == METHOD_POST {
|
||||
strMethod = "POST"
|
||||
} else {
|
||||
return fmt.Errorf("not support method.")
|
||||
return nil
|
||||
}
|
||||
|
||||
postAliasUrl[strMethod][matchURL] = r
|
||||
|
||||
Reference in New Issue
Block a user