Skip to content

Commit

Permalink
Improve request
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySwimmer committed Oct 12, 2023
1 parent eafa2e4 commit 713c92f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 238,7 @@ public override void StartServer()

// Write request
byte[] d = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(data));
strm.Write(Encoding.UTF8.GetBytes("POST " WebUtility.UrlEncode(u.PathAndQuery) " HTTP/1.1\r\n"));
strm.Write(Encoding.UTF8.GetBytes("POST " u.PathAndQuery " HTTP/1.1\r\n"));
strm.Write(Encoding.UTF8.GetBytes("X-Request-ID: " Guid.NewGuid().ToString() "\r\n"));
strm.Write(Encoding.UTF8.GetBytes("X-Request-RNDID: " Guid.NewGuid().ToString() "\r\n"));
strm.Write(Encoding.UTF8.GetBytes("Upgrade: PHOENIXSERVERLISTCLIENT\r\n"));
Expand Down

0 comments on commit 713c92f

Please sign in to comment.