]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: correct RFC for MethodPatch
authorShenghou Ma <minux@golang.org>
Wed, 4 May 2016 21:06:50 +0000 (17:06 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 4 May 2016 22:11:56 +0000 (22:11 +0000)
Fixes #15546.

Change-Id: I39c29ea6999812dd5f1c45f67bddad28f20b6c6b
Reviewed-on: https://go-review.googlesource.com/22773
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/method.go

index b74f9604d34109a4f03a6ae0360a7e5b71128800..6f46155069f0e419515444e4ad6593f30ea74067 100644 (file)
@@ -12,7 +12,7 @@ const (
        MethodHead    = "HEAD"
        MethodPost    = "POST"
        MethodPut     = "PUT"
-       MethodPatch   = "PATCH" // RFC 5741
+       MethodPatch   = "PATCH" // RFC 5789
        MethodDelete  = "DELETE"
        MethodConnect = "CONNECT"
        MethodOptions = "OPTIONS"