arclanguage / anarki

Community-managed fork of the Arc dialect of Lisp; for commit privileges submit a pull request.
http://arclanguage.github.io
Other
1.17k stars 160 forks source link

`defreq` confuses fields and values #91

Closed hjek closed 6 years ago

hjek commented 6 years ago

It would seem most reasonable that the code below would

(defreq foo http://localhost:8080 '(bar baz))
(foo '(1 2))

However, it appears that the actual request contains the field bar with the value baz and the field 1 with the value 2,

% nc -l -p 8080
GET /?bar=baz&1=2 HTTP/1.0
Host: localhost
User-Agent: Web.arc/1.0