cljs-http icon indicating copy to clipboard operation
cljs-http copied to clipboard

get request not sending body

Open shmish111 opened this issue 10 years ago • 2 comments

When I use the following request in google chrome, it shows me the payload that was sent correctly

(http/post (str host "/profiles/search") {:with-credentials? false
                                           :accept            "application/edn"
                                           :edn-params        {:query query}})

However if I use a GET request it appears from chrome developer tools that no payload is sent:

(http/get (str host "/profiles/search") {:with-credentials? false
                                           :accept            "application/edn"
                                           :edn-params        {:query query}})

Looking in the source code I cannot work out why this is?

shmish111 avatar Jul 24 '15 20:07 shmish111

Same problem

fl00r avatar Aug 24 '18 14:08 fl00r

cljs-http doing everything properly,

but, accordingly to https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send body in GET/HEAD request are not supported. which is weird.

fl00r avatar Aug 24 '18 14:08 fl00r