curb
curb copied to clipboard
Can't specify Content-type for Curl::Postfield.file
You can specify content-type for Curl::Postfield.content, but not for Curl::Postfield.file.
http://curb.rubyforge.org/classes/Curl/PostField.html
You can specify it in a separate step:
field = Curl::PostField.file(...)
field.content_type = "image/jpeg"
I'm not sure I'll have time to work on that in the near future, if you or someone wants to submit a pull request, I'll definitely merge it in for you.