Add custom HTTP methods

Should fix #291
This commit is contained in:
Leonid Bugaev
2016-06-04 21:12:43 +05:00
parent 9a6186ce9c
commit ae092d6a02
+1 -1
View File
@@ -295,7 +295,7 @@ func Status(payload []byte) []byte {
}
var httpMethods []string = []string{
"GET ", "OPTI", "HEAD", "POST", "PUT ", "DELE", "TRAC", "CONN",
"GET ", "OPTI", "HEAD", "POST", "PUT ", "DELE", "TRAC", "CONN", /* custom methods */"BAN", "PURG"
}
func IsHTTPPayload(payload []byte) bool {