geku/docker-client — pull request #3 by vito (2013-06-09 21:41:06+00:00)
Title: remove shared curl state from Connection

Previously, attaching to a container would break subsequent requests, as its on_body callback was registered on a shared @curl variable, and would consume the response.

This just makes each request initiate a fresh Curl object.

With this change the example from the README can be run directly; before it would blow up after the attach part.