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

README: convert key to bytes before passing to NewCookieStore #174

Merged
merged 1 commit into from Nov 27, 2018
Merged

README: convert key to bytes before passing to NewCookieStore #174

merged 1 commit into from Nov 27, 2018

Conversation

nikhita
Copy link
Contributor

@nikhita nikhita commented Nov 27, 2018

os.Getenv will return a string, but NewCookieStore takes bytes as the argument:

func NewCookieStore(keyPairs ...[]byte) *CookieStore {

@elithrar
Copy link
Contributor

Good catch, thanks!

@elithrar elithrar merged commit 4109461 into gorilla:master Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants