允许其他method

This commit is contained in:
duanhf2012
2020-01-02 16:05:24 +08:00
parent b851ae2791
commit 27645492ce

View File

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