allows other http methods

vnext
Paul Schneider 7 years ago
parent 50bd381f99
commit 6a206539ef
1 changed files with 2 additions and 2 deletions

@ -38,10 +38,10 @@ namespace Yavsc.Helpers
/// Initializes a new instance of the Yavsc.Helpers.SimpleJsonPostMethod class.
/// </summary>
/// <param name="pathToMethod">Path to method.</param>
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;

Loading…