Ashwin
Ashwin

Reputation: 13547

Adding `Content-Length` header to POST request using clj-http.lite?

I just shifted from using clj-http to clj-http.lite . The code used for uploading a file with multipart that worked with clj-http does not seem to work with clj-http-lite . With the later I get an error

POST requests require a <code>Content-length</code> header.  <ins>That's all we know.</ins>

I tried adding the content length header explicitly but still get the same error (http status code 411) Any idea what is happening here?

Upvotes: 0

Views: 154

Answers (0)

Related Questions