Skip to content

Commit

Permalink
Updated the HTTPWebRequest to use the content type property instead o…
Browse files Browse the repository at this point in the history
…f manually adding it as a header
  • Loading branch information
jmutter committed Oct 4, 2013
1 parent 2da703d commit 332836c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ServerNotify/server/ServerNotify/Default.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void sendAlert(String serverName, String serverIP)
{
HttpWebRequest HttpWReq = (HttpWebRequest)WebRequest.Create(httpURL);
HttpWReq.Method = ("POST");
HttpWReq.Headers.Add("ContentType", "text/plain");
HttpWReq.ContentType = "text/plain";
byte[] data = System.Text.ASCIIEncoding.UTF8.GetBytes(transmitData);
if (data.Length <= 8192)
{
Expand Down

0 comments on commit 332836c

Please sign in to comment.