#314 closed enhancement (fixed)
spiffy-request-vars: as-boolean enhancements
Reported by: | Moritz Heidkamp | Owned by: | Mario Domenech Goulart |
---|---|---|---|
Priority: | not urgent at all | Milestone: | |
Component: | extensions | Version: | 4.5.x |
Keywords: | spiffy-request-vars as-boolean plusplus | Cc: | |
Estimated difficulty: |
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))
Attachments (1)
Change History (3)
Changed 14 years ago by
Attachment: | spiffy-request-vars-as-boolean.patch added |
---|
comment:1 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Applied, thanks. See spiffy-request-vars 0.11.