toland / patron

Ruby HTTP client based on libcurl
http://toland.github.com/patron/
MIT License
541 stars 73 forks source link

Fix handling of literal PUT bodies larger than 31 byte long (no, really) #115

Closed julik closed 8 years ago

julik commented 8 years ago

Fix the issue with a timeout occurring when you try to send a literal string buffer as if it were a file. I think something is broken in the session_read_handler just by virtue of it using strlen() where binary bodies may be involved. Also, judging from the CURL docs it is really meant for files, or other situations where you fetch from an external source (like an upstream server).

Should resolve #12

toland commented 8 years ago

LGTM