summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-10-02 22:18:49 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2023-10-05 16:40:59 +0200
commit81ef7bf7988fc7ff30f87ac50f511b0b8a76d378 (patch)
treeacda87b8077e81be25e5efcab16f6a9eff9361a9 /tests
parent6b7245fb3858bee36184af851cac976613afa1aa (diff)
requests: fix query-string for arrays of values
Diffstat (limited to 'tests')
-rw-r--r--tests/requests.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/requests.scm b/tests/requests.scm
index 15cee77..727a886 100644
--- a/tests/requests.scm
+++ b/tests/requests.scm
@@ -55,10 +55,10 @@
(test-group "Encodes array in querystring"
(define url (neocities-url
"info" #:hostname "neocities.org" #:port 80
- #:querystring '(("file" . ("COSA CON ESPACIOS" "otra cosa")))))
+ #:querystring '(("file[]" . ("COSA CON ESPACIOS" "otra cosa")))))
(test-assert (string=?
(uri-query url)
- "file[]=COSA%20CON%20ESPACIOS&file[]=otra%20cosa")))
+ "file%5B%5D=COSA%20CON%20ESPACIOS&file%5B%5D=otra%20cosa")))
(test-end "URL")