Skip to content

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

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

elithrar merged 1 commit into
gorilla:masterfrom
nikhita:readme-secret-byte

Conversation

@nikhita

@nikhita nikhita commented Nov 27, 2018

Copy link
Copy Markdown
Contributor

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

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

@elithrar

Copy link
Copy Markdown
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