Changeset 377 for binary-improvements2/SpaceWizards.HttpListener/src/System/Net/HttpListenerRequest.cs
- Timestamp:
- Aug 1, 2022, 12:26:44 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/SpaceWizards.HttpListener/src/System/Net/HttpListenerRequest.cs
r376 r377 1 1 // Licensed to the .NET Foundation under one or more agreements. 2 2 // The .NET Foundation licenses this file to you under the MIT license. 3 4 // ReSharper disable RedundantUsingDirective 5 // ReSharper disable RedundantUnsafeContext 6 // ReSharper disable RedundantToStringCall 7 // ReSharper disable ConditionIsAlwaysTrueOrFalse 3 8 4 9 using System; … … 185 190 _keepAlive = 186 191 header.IndexOf("close", StringComparison.OrdinalIgnoreCase) < 0 || 192 #if UNITY_NETFRAMEWORK 193 header.IndexOf("keep-alive", StringComparison.OrdinalIgnoreCase) >= 0; 194 #else 187 195 header.Contains("keep-alive", StringComparison.OrdinalIgnoreCase); 196 #endif 188 197 } 189 198 } … … 343 352 return null; 344 353 354 #if UNITY_NETFRAMEWORK 355 attrValue = headerValue.Substring(i + 1, j - i - 1).Trim(); 356 #else 345 357 attrValue = headerValue.AsSpan(i + 1, j - i - 1).Trim().ToString(); 358 #endif 346 359 } 347 360 else … … 356 369 return null; 357 370 371 #if UNITY_NETFRAMEWORK 372 attrValue = headerValue.Substring(i, j - i).Trim(); 373 #else 358 374 attrValue = headerValue.AsSpan(i, j - i).Trim().ToString(); 375 #endif 359 376 } 360 377
Note:
See TracChangeset
for help on using the changeset viewer.