aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/Net/HttpListenerRequest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SocketHttpListener/Net/HttpListenerRequest.cs')
-rw-r--r--SocketHttpListener/Net/HttpListenerRequest.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/SocketHttpListener/Net/HttpListenerRequest.cs b/SocketHttpListener/Net/HttpListenerRequest.cs
index 2e8396f6f..1c832367e 100644
--- a/SocketHttpListener/Net/HttpListenerRequest.cs
+++ b/SocketHttpListener/Net/HttpListenerRequest.cs
@@ -23,7 +23,7 @@ namespace SocketHttpListener.Net
private static CookieCollection ParseCookies(Uri uri, string setCookieHeader)
{
- CookieCollection cookies = new CookieCollection();
+ var cookies = new CookieCollection();
return cookies;
}
@@ -171,7 +171,7 @@ namespace SocketHttpListener.Net
{
get
{
- QueryParamCollection queryString = new QueryParamCollection();
+ var queryString = new QueryParamCollection();
Helpers.FillFromString(queryString, Url.Query, true, ContentEncoding);
return queryString;
}
@@ -197,7 +197,7 @@ namespace SocketHttpListener.Net
return null;
}
- bool success = Uri.TryCreate(referrer, UriKind.RelativeOrAbsolute, out Uri urlReferrer);
+ bool success = Uri.TryCreate(referrer, UriKind.RelativeOrAbsolute, out var urlReferrer);
return success ? urlReferrer : null;
}
}
@@ -296,7 +296,7 @@ namespace SocketHttpListener.Net
// collect comma-separated values into list
- List<string> values = new List<string>();
+ var values = new List<string>();
int i = 0;
while (i < l)
@@ -341,7 +341,7 @@ namespace SocketHttpListener.Net
private static string UrlDecodeStringFromStringInternal(string s, Encoding e)
{
int count = s.Length;
- UrlDecoder helper = new UrlDecoder(count, e);
+ var helper = new UrlDecoder(count, e);
// go through the string's chars collapsing %XX and %uXXXX and
// appending each char as char, with exception of %XX constructs