maybe cookies are lowkey one header but delimited
This commit is contained in:
@@ -32,9 +32,9 @@ func TestDoCookies(t *testing.T) {
|
||||
if calls != 1 {
|
||||
if !strings.Contains(fmt.Sprint(r.Header["Cookie"]), "name=value"+strconv.Itoa(calls-1)) {
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
t.Error("cookie not set as latest")
|
||||
t.Error("cookie not set as latest: " + fmt.Sprint(r.Header["Cookie"]))
|
||||
}
|
||||
if !strings.Contains(fmt.Sprint(r.Header["Cookie"]), "Expires") {
|
||||
if strings.Contains(fmt.Sprint(r.Header["Cookie"]), "Expires") {
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
t.Error("cookie not expiration: ", r.Header["Cookie"])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user