Skip to content

qualified keywords not showing in :post request that are showing in cljs-ajax = #260

Open
@zendevil

Description

I’m sending a post request with qualified keywords like so:

:http-xhrio {:method :post
   :uri "/the-uri"
   :params {:user/foo 1 :user/bar 1}
   :on-success [:foo]
   :on-failure [:bar]
   :response-format (edn/edn-response-format)
   :format (edn/edn-request-format)
   }

And also using cljs-ajax library purely:

(ajax-request {:uri "/the-uri" :method :post :params {:user/foo 2 :user/bar 2} :handler (fn [res] (prn res)) :format (edn/edn-request-format) :response-format (edn/edn-response-format)})
In the former case, the incoming :params in the server aren’t namespace qualified, i.e., `{:foo 1 :bar 2}`, whereas in the latter case they are, i.e., {:user/foo 1 :user/bar 2}. 

Is this a bug in the re-frame-http-fx library?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions