From: Alan Braithwaite Date: Tue, 21 Aug 2018 01:07:47 +0000 (+0000) Subject: net/http: fix cookie SameSite docs grammar X-Git-Tag: go1.12beta1~1405 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=00379be17e63a5b75b3237819392d2dc3b313a27;p=gostls13.git net/http: fix cookie SameSite docs grammar Change-Id: I76d878343c1cc14b53c700b0476ca050c1f9e6be GitHub-Last-Rev: 148a45f4b63f7f55312112bbbd982f9927ac9e6e GitHub-Pull-Request: golang/go#27107 Reviewed-on: https://go-review.googlesource.com/130235 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/http/cookie.go b/src/net/http/cookie.go index b1a6cef6f7..382398756b 100644 --- a/src/net/http/cookie.go +++ b/src/net/http/cookie.go @@ -36,10 +36,10 @@ type Cookie struct { Unparsed []string // Raw text of unparsed attribute-value pairs } -// SameSite allows a server define a cookie attribute making it impossible to -// the browser send this cookie along with cross-site requests. The main goal -// is mitigate the risk of cross-origin information leakage, and provides some -// protection against cross-site request forgery attacks. +// SameSite allows a server define a cookie attribute making it impossible for +// the browser to send this cookie along with cross-site requests. The main +// goal is mitigate the risk of cross-origin information leakage, and provides +// some protection against cross-site request forgery attacks. // // See https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00 for details. type SameSite int