Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDN params remains nil despite wrapping in this middleware #5

Open
ghost opened this issue May 13, 2015 · 0 comments
Open

EDN params remains nil despite wrapping in this middleware #5

ghost opened this issue May 13, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented May 13, 2015

A lot of people on #clojure and SO have weighed in on this. In short, I am doing this:

curl -X PUT -H "Content-Type: application/edn" -d '{:name :barnabas}' http://localhost:6542/ajax-example

Getting this:

{:ssl-client-cert nil, :remote-addr "0:0:0:0:0:0:0:1", :params {}, :route-params {}, :headers {"host" "localhost:6542", "content-length" "17", "content-type" "application/edn", "user-agent" "curl/7.37.1", "accept" "/"}, :server-port 6542, :content-length 17, :content-type "application/edn", :character-encoding nil, :uri "/ajax-example", :server-name "localhost", :query-string nil, :edn-params nil, :scheme :http, :request-method

:edn-params is nil, but content length reveals that the content is in fact there somewhere. The full code is here:

http://stackoverflow.com/questions/30209769/unable-to-parse-out-edn-in-this-server-request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants