Summary
spiffy-request-vars: as-boolean enhancements
Metadata
- Id: 8f6bbefee2821d6b757abc6f04dad4893464abe3
- Trac id: 314
- Type: enhancement
- Reporter: syn
- Owner: mario
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: not urgent at all
- Milestone:
- Version: 4.5.x
- Changetime: 2011-04-04 08:31:00 UTC
- Created: 2010-08-09 05:19:22 UTC
- Keywords: spiffy-request-vars as-boolean plusplus
Attachments
- 8f6bbefee2821d6b757abc6f04dad4893464abe3/attachments/spiffy-request-vars-as-boolean.patch
Description
The attached patch enhances as-boolean in two ways: It adds "true" to the default list of true-boolean-values and it considers the mere presence of the parameter as #t, i.e. a query string like "?foo" would bind foo to #t when it is cast as-boolean. This is consistent with uri-common's parsing behavior:
(uri-query (uri-reference "?foo")) => ((foo . #t))
Changes and comments
[2010-08-09 05:19:33 UTC] syn attached spiffy-request-vars-as-boolean.patch (description=#f)
[2010-08-10 14:51:55 UTC] mario changed status from new to closed
[2010-08-10 14:51:55 UTC] mario set resolution to fixed
[2010-08-10 14:51:55 UTC] mario wrote:
Applied, thanks. See spiffy-request-vars 0.11.
[2011-04-04 08:31:00 UTC] felix removed milestone 4.6.0
[2011-04-04 08:31:00 UTC] felix wrote:
Milestone 4.6.0 deleted