This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree 1 file changed +2
-4
lines changed
src/MinimalHelpers.Binding
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ namespace MinimalHelpers.Binding;
11
11
/// <seealso cref="EndpointMetadataCollection"/>
12
12
public static class RouteHandlerBuilderExtensions
13
13
{
14
- private const string multipartFormData = "multipart/form-data" ;
15
-
16
14
/// <summary>
17
15
/// Adds a <see cref="IAcceptsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for the <see cref="IFormFile"/> request type.
18
16
/// </summary>
@@ -22,7 +20,7 @@ public static class RouteHandlerBuilderExtensions
22
20
/// <seealso cref="RouteHandlerBuilder"/>
23
21
/// <seealso cref="EndpointMetadataCollection"/>
24
22
public static RouteHandlerBuilder AcceptsFormFile ( this RouteHandlerBuilder builder )
25
- => builder . Accepts < IFormFile > ( multipartFormData ) ;
23
+ => builder . Accepts < IFormFile > ( "multipart/form-data" ) ;
26
24
27
25
/// <summary>
28
26
/// 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
33
31
/// <seealso cref="RouteHandlerBuilder"/>
34
32
/// <seealso cref="EndpointMetadataCollection"/>
35
33
public static RouteHandlerBuilder AcceptsFormFileCollection ( this RouteHandlerBuilder builder )
36
- => builder . Accepts < IFormFileCollection > ( multipartFormData ) ;
34
+ => builder . Accepts < IFormFileCollection > ( "multipart/form-data" ) ;
37
35
}
You can’t perform that action at this time.
0 commit comments