URI query tags case-sensitive
svn: r262
This commit is contained in:
parent
a2d54ace4d
commit
de84c91d1a
|
@ -247,7 +247,6 @@
|
||||||
(match (regexp-match-positions key-regexp str start)
|
(match (regexp-match-positions key-regexp str start)
|
||||||
[((start . end))
|
[((start . end))
|
||||||
(vector (let ([s (form-urlencoded-decode (substring str start end))])
|
(vector (let ([s (form-urlencoded-decode (substring str start end))])
|
||||||
(string-lowercase! s)
|
|
||||||
(string->symbol s))
|
(string->symbol s))
|
||||||
(add1 end))]
|
(add1 end))]
|
||||||
[#f #f])))
|
[#f #f])))
|
||||||
|
|
|
@ -33,6 +33,9 @@
|
||||||
(test '((a . "hel+lo;b=good-bye")) form-urlencoded->alist
|
(test '((a . "hel+lo;b=good-bye")) form-urlencoded->alist
|
||||||
(parameterize ([current-alist-separator-mode 'semi])
|
(parameterize ([current-alist-separator-mode 'semi])
|
||||||
(alist->form-urlencoded '((a . "hel+lo") (b . "good-bye"))))))
|
(alist->form-urlencoded '((a . "hel+lo") (b . "good-bye"))))))
|
||||||
|
(test "aNt=hi" alist->form-urlencoded '((aNt . "hi")))
|
||||||
|
(test '((aNt . "hi")) form-urlencoded->alist (alist->form-urlencoded '((aNt . "hi"))))
|
||||||
|
(test "aNt=hi" alist->form-urlencoded (form-urlencoded->alist "aNt=hi"))
|
||||||
|
|
||||||
(test 'amp-or-semi current-alist-separator-mode)
|
(test 'amp-or-semi current-alist-separator-mode)
|
||||||
(err/rt-test (current-alist-separator-mode 'bad))
|
(err/rt-test (current-alist-separator-mode 'bad))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user