Skip to content

Commit

Permalink
PR review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier García de la Noceda Argüelles committed Sep 30, 2024
1 parent a08a082 commit c1105f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/WebSites/Basic/Controllers/FilesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion test/WebSites/WebApi/EndPoints/OpenApiEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit c1105f7

Please sign in to comment.