完善
This commit is contained in:
parent
ec2aa30eb6
commit
67b48b36a8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user