code format
This commit is contained in:
parent
b6d3dc1a9b
commit
be5c5c5a00
1 changed files with 2 additions and 3 deletions
|
|
@ -41,8 +41,7 @@ namespace Yavsc.Helpers
|
||||||
/// <param name="pathToMethod">Path to method.</param>
|
/// <param name="pathToMethod">Path to method.</param>
|
||||||
public SimpleJsonPostMethod (string pathToMethod, string authorizationHeader = null)
|
public SimpleJsonPostMethod (string pathToMethod, string authorizationHeader = null)
|
||||||
{
|
{
|
||||||
request = (HttpWebRequest) WebRequest.Create (
|
request = (HttpWebRequest) WebRequest.Create (BasePath + pathToMethod);
|
||||||
BasePath + pathToMethod);
|
|
||||||
request.Method = "POST";
|
request.Method = "POST";
|
||||||
request.Accept = "application/json";
|
request.Accept = "application/json";
|
||||||
request.ContentType = "application/json";
|
request.ContentType = "application/json";
|
||||||
|
|
@ -104,10 +103,10 @@ namespace Yavsc.Helpers
|
||||||
}
|
}
|
||||||
catch (WebException ex)
|
catch (WebException ex)
|
||||||
{
|
{
|
||||||
|
// TODO err logging
|
||||||
Debug.Print($"Web request failed: {request.ToString()}\n" + ex.ToString());
|
Debug.Print($"Web request failed: {request.ToString()}\n" + ex.ToString());
|
||||||
}
|
}
|
||||||
return jsonDoc;
|
return jsonDoc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue