mirror of
https://github.com/wahyd4/loginsrv.git
synced 2026-08-09 04:46:29 +10:00
Correct error in last commit
This commit is contained in:
@@ -47,6 +47,7 @@ func Test_ServeHTTP_200(t *testing.T) {
|
||||
}
|
||||
|
||||
//Set cookie for user token on the ServeHTTP http.ResponseWriter
|
||||
cookie := http.Cookie{Name: "jwt_token",Value: validToken, HttpOnly: true}
|
||||
http.SetCookie(w, &cookie)
|
||||
|
||||
//Add the cookie to the request
|
||||
|
||||
Reference in New Issue
Block a user