fix resetting of cURL option (was causing bugs on POST/DELETE sequences)