Reset the custom curl method after each type of request.

Fixes #50.