mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-21 00:37:31 +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 {
|
} else if method == METHOD_POST {
|
||||||
strMethod = "POST"
|
strMethod = "POST"
|
||||||
} else {
|
} else {
|
||||||
return fmt.Errorf("not support method.")
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
postAliasUrl[strMethod][matchURL] = r
|
postAliasUrl[strMethod][matchURL] = r
|
||||||
|
|||||||
Reference in New Issue
Block a user