File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1+ ## Unreleased
2+
3+ * [ Support ActionDispatch::Http::UploadedFile again] ( https://github.com/jnunemaker/httparty/pull/585 )
4+
15## 0.16.1
26
37* [ Parse content with application/hal+json content type as JSON] ( https://github.com/jnunemaker/httparty/pull/573 )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def generate_multipart
3232 multipart = normalized_params . inject ( '' ) do |memo , ( key , value ) |
3333 memo += "--#{ boundary } \r \n "
3434 memo += %(Content-Disposition: form-data; name="#{ key } ")
35- memo += %(; filename="#{ File . basename ( value ) } ") if file? ( value )
35+ memo += %(; filename="#{ File . basename ( value . path ) } ") if file? ( value )
3636 memo += "\r \n "
3737 memo += "Content-Type: application/octet-stream\r \n " if file? ( value )
3838 memo += "\r \n "
You can’t perform that action at this time.
0 commit comments