Fix CVS crap

original commit: cc9a1fe584a421095441c48197ad18bb0dae06b7
This commit is contained in:
Michael Burns 2004-08-28 05:24:53 +00:00
parent 9c29860de8
commit a06af27c72

View File

@ -73,6 +73,7 @@
(require (lib "unitsig.ss") (require (lib "unitsig.ss")
(lib "match.ss") (lib "match.ss")
(lib "string.ss")
"uri-codec-sig.ss") "uri-codec-sig.ss")
(provide uri-codec@) (provide uri-codec@)
@ -225,7 +226,9 @@
#f #f
(match (regexp-match-positions key-regexp str start) (match (regexp-match-positions key-regexp str start)
[((start . end)) [((start . end))
(vector (form-urlencoded-decode (substring str start end)) (vector (let ([s (form-urlencoded-decode (substring str start end))])
(string-lowercase! s)
(string->symbol s))
(add1 end))] (add1 end))]
[#f #f]))) [#f #f])))
(define (next-value str start) (define (next-value str start)
@ -245,16 +248,16 @@
[#f [#f
(vector (cons key "") (string-length str))])] (vector (cons key "") (string-length str))])]
[#f #f])) [#f #f]))
(let loop ((start 0) (let loop ([start 0]
(end (string-length str)) [end (string-length str)]
(alist '())) [make-alist (lambda (x) x)])
(cond (cond
[(>= start end) alist] [(>= start end) (make-alist '())]
[else [else
(match (next-pair str start) (match (next-pair str start)
[#(pair next-start) [#(pair next-start)
(loop next-start end (cons pair alist))] (loop next-start end (lambda (x) (make-alist (cons pair x))))]
[#f alist])]))) [#f (make-alist '())])])))
)) ))
) )