Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 6abb3b2

Browse files
authored
Merge pull request #3 from marcominerva/develop
Little fix
2 parents 64609ac + 8175d3d commit 6abb3b2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/MinimalHelpers.Binding/RouteHandlerBuilderExtensions.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ namespace MinimalHelpers.Binding;
1111
/// <seealso cref="EndpointMetadataCollection"/>
1212
public static class RouteHandlerBuilderExtensions
1313
{
14-
private const string multipartFormData = "multipart/form-data";
15-
1614
/// <summary>
1715
/// Adds a <see cref="IAcceptsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for the <see cref="IFormFile"/> request type.
1816
/// </summary>
@@ -22,7 +20,7 @@ public static class RouteHandlerBuilderExtensions
2220
/// <seealso cref="RouteHandlerBuilder"/>
2321
/// <seealso cref="EndpointMetadataCollection"/>
2422
public static RouteHandlerBuilder AcceptsFormFile(this RouteHandlerBuilder builder)
25-
=> builder.Accepts<IFormFile>(multipartFormData);
23+
=> builder.Accepts<IFormFile>("multipart/form-data");
2624

2725
/// <summary>
2826
/// Adds a <see cref="IAcceptsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for the <see cref="IFormFileCollection"/> request type.
@@ -33,5 +31,5 @@ public static RouteHandlerBuilder AcceptsFormFile(this RouteHandlerBuilder build
3331
/// <seealso cref="RouteHandlerBuilder"/>
3432
/// <seealso cref="EndpointMetadataCollection"/>
3533
public static RouteHandlerBuilder AcceptsFormFileCollection(this RouteHandlerBuilder builder)
36-
=> builder.Accepts<IFormFileCollection>(multipartFormData);
34+
=> builder.Accepts<IFormFileCollection>("multipart/form-data");
3735
}

0 commit comments

Comments
 (0)