IOStream instead of String for post data #9

Merged
merged 2 commits into from Oct 6, 2011

Projects

None yet

2 participants

@mrloop
Contributor
mrloop commented Oct 6, 2011

When posting a large file ~ 4MB to basecamp this error was thrown.

Timeout::Error
.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:140:in `rescue in rbuf_fill'

Using an IOStream instead of a String for the post data solves this.

@anibalcucco anibalcucco merged commit 64d966d into anibalcucco:master Oct 6, 2011
@anibalcucco
Owner

Merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment