Summary

http-session's session-del! fails when the entry is the session-item's first binding

Metadata

Attachments

Description

session-del! currently fails to remove an entry for the given key when that entry is the first item in the pertinent session-item's bindings alist (because alist-delete! just returns the alist's cdr when its car is to be removed (without set-cdr!ing anything) and the session-item's bindings slot is never updated to refer to the new start of the alist). The attached patch fixes this.

Changes and comments

[2013-03-05 10:49:19 UTC] evhan attached fix-session-del-on-first-item.patch (description=#f)

[2013-03-05 23:51:42 UTC] mario changed status from new to closed

[2013-03-05 23:51:42 UTC] mario set resolution to fixed

[2013-03-05 23:51:42 UTC] mario wrote:

Thanks a lot, Evan. I've pushed your patch and released version 2.8. I've moved the http-session repository to github: https://github.com/mario-goulart/http-session