Reset the custom curl method after a PUT request

Fixes #50.