diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-18 16:48:01 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-18 16:48:01 +0100 |
| commit | c1f76eb8ab2c4fe536a9b612d659bf739f0cc7ac (patch) | |
| tree | b78e697ec3676c70a2db5c98ce2a5ea27fdea105 /SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs | |
| parent | 38f96af079887cce7c38fcde8340fd7c6d1150ad (diff) | |
Reformat JustAMan review pt3 changes
Diffstat (limited to 'SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs')
| -rw-r--r-- | SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs b/SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs index 52e70b68b..7b4b619e6 100644 --- a/SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs +++ b/SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs @@ -94,10 +94,10 @@ namespace SocketHttpListener.Net // Try to check the raw path using first the primary encoding (according to http.sys settings); // if it fails try the secondary encoding. - var result = BuildRequestUriUsingRawPath(GetEncoding(EncodingType.Primary)); + ParsingResult result = BuildRequestUriUsingRawPath(GetEncoding(EncodingType.Primary)); if (result == ParsingResult.EncodingError) { - var secondaryEncoding = GetEncoding(EncodingType.Secondary); + Encoding secondaryEncoding = GetEncoding(EncodingType.Secondary); result = BuildRequestUriUsingRawPath(secondaryEncoding); } isValid = (result == ParsingResult.Success) ? true : false; @@ -136,7 +136,7 @@ namespace SocketHttpListener.Net _requestUriString.Append(Uri.SchemeDelimiter); _requestUriString.Append(_cookedUriHost); - var result = ParseRawPath(encoding); + ParsingResult result = ParseRawPath(encoding); if (result == ParsingResult.Success) { _requestUriString.Append(_cookedUriQuery); @@ -263,7 +263,7 @@ namespace SocketHttpListener.Net private bool AddPercentEncodedOctetToRawOctetsList(Encoding encoding, string escapedCharacter) { - if (!byte.TryParse(escapedCharacter, NumberStyles.HexNumber, null, out var encodedValue)) + if (!byte.TryParse(escapedCharacter, NumberStyles.HexNumber, null, out byte encodedValue)) { //if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, escapedCharacter)); return false; |
