alexedwards / scs

HTTP Session Management for Go
MIT License
2.12k stars 165 forks source link

Fix write before pop not removing value #216

Open jackielii opened 3 months ago

jackielii commented 3 months ago

fix #215

jackielii commented 3 months ago

The test still fails because we can't write the header after the first w.Write, at which point the header is already written. Therefore the set-cookie response header of first /get is still empty. I don't know there is a better way. If you think it's acceptable, I'll modify the test