Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: SameSite description is grammatically incorrect #28244

Closed
taylorza opened this issue Oct 17, 2018 · 21 comments
Closed

net/http: SameSite description is grammatically incorrect #28244

taylorza opened this issue Oct 17, 2018 · 21 comments

Comments

@taylorza
Copy link

taylorza commented Oct 17, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go 1.11.x

Does this issue reproduce with the latest release?

The issue is with the documentation for net/http/SameSite documentation which was added in go 1.11

What did you expect to see?

I believe the following captures the intended description, without restructuring it too significantly

SameSite allows a server to define a cookie attribute making it impossible for the browser to send this cookie along with cross-site requests. The main goal is to mitigate the risk of cross-origin information leakage and provide some protection against cross-site request forgery attacks.

What did you see instead?

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.

@bradfitz bradfitz changed the title net/http/SameSite: Description is grammatically incorrect net/http: SameSite description is grammatically incorrect Oct 17, 2018
@bradfitz bradfitz added this to the Unplanned milestone Oct 17, 2018
@bradfitz
Copy link
Contributor

Want to send a change?

@taylorza
Copy link
Author

@bradfitz, I will send the change in.

@mbj36
Copy link
Contributor

mbj36 commented Oct 18, 2018

@bradfitz I am new contributor to golang and i am slightly confused about the master branch....I have built my docs using godoc -http:=6060 and my master branch doesn't reflect what is present here - https://golang.org/pkg/net/http

Am i missing something, can you please point me to the right direction ?

@bradfitz
Copy link
Contributor

@mbj36, I don't know what you've done or what your environment is so it's hard to help. I suspect the godoc you're running is using the wrong GOROOT. You can explicitly set the GOROOT environment variable to point to your master checkout path.

Also perhaps of help: https://golang.org/doc/contribute.html and the #gocontributing channel on the Gophers Slack.

@mbj36
Copy link
Contributor

mbj36 commented Oct 19, 2018

@bradfitz Thanks for the reply.

This issue has been already fix here - https://tip.golang.org/pkg/net/http/#SameSite

@agnivade
Copy link
Contributor

If you want, you can still fix it by removing the s from provides.

The main goal is to mitigate the risk of cross-origin information leakage, and provides some protection against cross-site request forgery attacks.

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

13 similar comments
@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@gopherbot
Copy link

Change https://golang.org/cl/143480 mentions this issue: doc: fix typo in cookie.go

@mbj36
Copy link
Contributor

mbj36 commented Oct 22, 2018

@agnivade Fixed

bradfitz pushed a commit that referenced this issue Nov 21, 2018
Fixes #28244

Change-Id: I3ca36fd513f5543af0c8af254d267254c7d5e803
GitHub-Last-Rev: 83b16fa
GitHub-Pull-Request: #28302
Reviewed-on: https://go-review.googlesource.com/c/143480
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
@golang golang locked and limited conversation to collaborators Nov 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants