Closed SaulDoesCode closed 5 years ago
I think this problem may be caused by the status 302 that Air automatically sets. See https://stackoverflow.com/a/4696017/5801959.
I tested it. It works fine in Chrome. But can't in Safari.
See request/request#1502.
I tested it just now, and it seems if you use *http.Cookie
and the conventional go way of setting cookies, then this problem is solved. The handler above works in mak
for some reason.
the problem is probably somewhere in
res.Write
, but it looks like the Header application step of serving is ignored whencontent io.ReadSeeker
is nil, or something else is happening, not sure. But I need cookies to set on redirects, it worked inecho
, it should work here.