diff --git a/src/targets/csharp/restsharp.js b/src/targets/csharp/restsharp.js index 0b8fc2735..b8af26f6e 100644 --- a/src/targets/csharp/restsharp.js +++ b/src/targets/csharp/restsharp.js @@ -10,6 +10,7 @@ module.exports = function (source, options) { return 'Method not supported' } else { code.push('var client = new RestClient("%s");', source.fullUrl) + code.push('client.ClearHandlers();') code.push('var request = new RestRequest(Method.%s);', source.method.toUpperCase()) }