mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix compile error (#1397)
This commit is contained in:
parent
c04c597aba
commit
7cbf677e0c
1 changed files with 7 additions and 7 deletions
|
|
@ -18,16 +18,16 @@ namespace MinecraftClient.Protocol
|
|||
private readonly string httpVersion = "HTTP/1.0"; // Use 1.0 here because 1.1 server may send chunked data
|
||||
|
||||
private Uri uri;
|
||||
private string host { get => uri.Host; }
|
||||
private int port { get => uri.Port; }
|
||||
private string path { get => uri.PathAndQuery; }
|
||||
private bool isSecure { get => uri.Scheme == "https"; }
|
||||
private string host { get { return uri.Host; } }
|
||||
private int port { get { return uri.Port; } }
|
||||
private string path { get { return uri.PathAndQuery; } }
|
||||
private bool isSecure { get { return uri.Scheme == "https"; } }
|
||||
|
||||
public NameValueCollection Headers = new NameValueCollection();
|
||||
|
||||
public string UserAgent { get => Headers.Get("User-Agent"); set => Headers.Set("User-Agent", value); }
|
||||
public string Accept { get => Headers.Get("Accept"); set => Headers.Set("Accept", value); }
|
||||
public string Cookie { set => Headers.Set("Cookie", value); }
|
||||
public string UserAgent { get { return Headers.Get("User-Agent"); } set { Headers.Set("User-Agent", value); } }
|
||||
public string Accept { get { return Headers.Get("Accept"); } set { Headers.Set("Accept", value); } }
|
||||
public string Cookie { set { Headers.Set("Cookie", value); } }
|
||||
|
||||
/// <summary>
|
||||
/// Create a new http request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue