diff --git a/actions/comment.go b/actions/comment.go index 44fb59f..b02642a 100644 --- a/actions/comment.go +++ b/actions/comment.go @@ -54,6 +54,9 @@ func PostComment(c *gin.Context) { return } if res.StatusCode == http.StatusFound { + for _, cookie := range res.Cookies() { + c.SetCookie(cookie.Name, cookie.Value, cookie.MaxAge, cookie.Path, cookie.Domain, cookie.Secure, cookie.HttpOnly) + } u := res.Header.Get("Location") up, err := url.Parse(u) if err != nil {