From 6a206539efa913364fc25e61d9baaf7a57f537df Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 2 Jul 2017 01:42:00 +0200 Subject: [PATCH] allows other http methods --- Yavsc/Helpers/SimpleJsonPostMethod.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Yavsc/Helpers/SimpleJsonPostMethod.cs b/Yavsc/Helpers/SimpleJsonPostMethod.cs index ab17d3a7..9f7b4004 100644 --- a/Yavsc/Helpers/SimpleJsonPostMethod.cs +++ b/Yavsc/Helpers/SimpleJsonPostMethod.cs @@ -38,10 +38,10 @@ namespace Yavsc.Helpers /// Initializes a new instance of the Yavsc.Helpers.SimpleJsonPostMethod class. /// /// Path to method. - public SimpleJsonPostMethod (string pathToMethod, string authorizationHeader = null) + public SimpleJsonPostMethod (string pathToMethod, string authorizationHeader = null, string method = "POST") { request = (HttpWebRequest) WebRequest.Create (pathToMethod); - request.Method = "POST"; + request.Method = method; request.Accept = "application/json"; request.ContentType = "application/json"; request.SendChunked = true;