From 81ef7bf7988fc7ff30f87ac50f511b0b8a76d378 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 2 Oct 2023 22:18:49 +0200 Subject: requests: fix query-string for arrays of values --- tests/requests.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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") -- cgit v1.2.3