diff --git a/test/WebSites/Basic/Controllers/FilesController.cs b/test/WebSites/Basic/Controllers/FilesController.cs index 0d09ffbdf4..0ca4714b48 100644 --- a/test/WebSites/Basic/Controllers/FilesController.cs +++ b/test/WebSites/Basic/Controllers/FilesController.cs @@ -21,7 +21,7 @@ public IActionResult PostFiles(IFormFileCollection files) } [HttpPost("form-with-file")] - public IActionResult PostFormWithFile([FromForm]FormWithFile formWithFile) + public IActionResult PostFormWithFile([FromForm] FormWithFile formWithFile) { throw new NotImplementedException(); } @@ -41,7 +41,7 @@ public FileResult GetFile(string name) writer.Flush(); stream.Position = 0; - var contentType = name.EndsWith(".zip", StringComparison.InvariantCultureIgnoreCase) ? "application/zip" : "text/plain"; + var contentType = name.EndsWith(".zip", StringComparison.OrdinalIgnoreCase) ? "application/zip" : "text/plain"; return File(stream, contentType, name); } diff --git a/test/WebSites/WebApi/EndPoints/OpenApiEndpoints.cs b/test/WebSites/WebApi/EndPoints/OpenApiEndpoints.cs index f446ffd754..f59eb08e1c 100644 --- a/test/WebSites/WebApi/EndPoints/OpenApiEndpoints.cs +++ b/test/WebSites/WebApi/EndPoints/OpenApiEndpoints.cs @@ -47,7 +47,7 @@ public static IEndpointRouteBuilder MapWithOpenApiEndpoints(this IEndpointRouteB return $"{file.FileName}{queryParameter}"; }).WithOpenApi(o => { - var parameter = o.Parameters.FirstOrDefault(p => p.Name.Equals("queryParameter", StringComparison.InvariantCulture)); + var parameter = o.Parameters.FirstOrDefault(p => p.Name.Equals("queryParameter", StringComparison.OrdinalIgnoreCase)); if (parameter is not null) { parameter.Description = $"{parameter.Name} Description";