Closed rfaulhaber closed 2 years ago
Found an issue with request where it was ignoring the value of :mime-type when specified.
:mime-type
For example, this:
(request-response-data (request "http://httpbin.org/post" :type "POST" :files `(("test" . ("file" :file "/home/ryan/hello.txt" :mime-type "text/plain"))) :parser 'json-read :success (cl-function (lambda (&key data &allow-other-keys) (message "data %s" data)))))
would generate a --form flag like: test=@/home/ryan/hello.txt;filename=file. This patch fixes the code such that type=... is added.
--form
test=@/home/ryan/hello.txt;filename=file
type=...
[my best denzel impression] "My man..."
Found an issue with request where it was ignoring the value of
:mime-type
when specified.For example, this:
would generate a
--form
flag like:test=@/home/ryan/hello.txt;filename=file
. This patch fixes the code such thattype=...
is added.