From 1b37eadd46826b5139438b036adc0ea48202f6b1 Mon Sep 17 00:00:00 2001 From: jwalsh Date: Wed, 15 Jun 2016 13:27:14 +1000 Subject: [PATCH] added clearhandlers function to clear the defaults --- src/targets/csharp/restsharp.js | 1 + 1 file changed, 1 insertion(+) 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()) }