Skip to content
Snippets Groups Projects
Unverified Commit 593cb7be authored by Danny Milosavljevic's avatar Danny Milosavljevic
Browse files

http: Interpret id and nr request-parameters as numbers.

* src/cuirass/http.scm (request-parameters): Interpret id and nr parameters as
numbers.
parent 7be12b9b
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,11 @@
(map (lambda (param)
(match (string-split param #\=)
((key param)
(list (string->symbol key) param))))
(let ((key-symbol (string->symbol key)))
(list key-symbol ((match key-symbol
('id string->number)
('nr string->number)
(_ const)) param))))))
(string-split query #\&)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment