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;