Skip to content

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

Merged
elithrar merged 1 commit intogorilla:masterfrom
nikhita:readme-secret-byte
Nov 27, 2018
Merged

README: convert key to bytes before passing to NewCookieStore#174
elithrar merged 1 commit intogorilla:masterfrom
nikhita:readme-secret-byte

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.

2 participants