h {"Content-Type" "multipart/form-data; boundary=XXXX"
"Accept" "application/edn"}]
(response-for
service
:post url
:body b
:headers h))
When I attempt to read the raw HTTP multipart request (recorded by Fiddler2) from a file,
clojure.io/input-stream will initialise a BufferedInputStream. Upon passing the InputStream as the :body in response-for, I get the following exception:
java.lang.IllegalArgumentException: Cannot open <nil> as an InputStream.
My guess is that the interceptor-service-fn doesn't like what is passed to it when creating the dummy servlet request from the body.
Perhaps I'm taking the wrong approach here, any tips would be most appreciated, many thanks!
Cheers,
Rowland