Setting cookies with net/http

I am not a Go expert, but I think you are setting the cookie on the request, aren’t you? You might want to set it on the response. There is a setCookie function in net/http. This might help:
http://golang.org/pkg/net/http/#SetCookie

func SetCookie(w ResponseWriter, cookie *Cookie)

Leave a Comment

error code: 521