Treat PATCH as a HTTP verb

This commit is contained in:
Jonathan Cremin
2016-10-27 18:44:54 +01:00
committed by GitHub
parent 22466d4028
commit 76fb91966b
+1 -1
View File
@@ -443,7 +443,7 @@ func Status(payload []byte) []byte {
}
var httpMethods []string = []string{
"GET ", "OPTI", "HEAD", "POST", "PUT ", "DELE", "TRAC", "CONN" /* custom methods */, "BAN", "PURG",
"GET ", "OPTI", "HEAD", "POST", "PUT ", "DELE", "TRAC", "CONN", "PATC" /* custom methods */, "BAN", "PURG",
}
func IsHTTPPayload(payload []byte) bool {