Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't specify Content-type for Curl::Postfield.file #122

Open
jonathan-mui opened this issue Jun 18, 2012 · 2 comments
Open

Can't specify Content-type for Curl::Postfield.file #122

jonathan-mui opened this issue Jun 18, 2012 · 2 comments

Comments

@jonathan-mui
Copy link

You can specify content-type for Curl::Postfield.content, but not for Curl::Postfield.file.

http://curb.rubyforge.org/classes/Curl/PostField.html

@senvee
Copy link

senvee commented Nov 13, 2012

You can specify it in a separate step:

field = Curl::PostField.file(...)
field.content_type = "image/jpeg"

@taf2
Copy link
Owner

taf2 commented Nov 29, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants