File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ This Source Code Form is subject to the terms of the
77using Microsoft . AspNetCore . Builder ;
88using Microsoft . AspNetCore . Hosting ;
99using Microsoft . AspNetCore . Http ;
10+ using Microsoft . AspNetCore . Http . Features ;
1011using OneScript . Contexts ;
1112using OneScript . Types ;
1213using ScriptEngine . Machine ;
@@ -16,6 +17,7 @@ This Source Code Form is subject to the terms of the
1617using System . Threading . Tasks ;
1718using Microsoft . AspNetCore . Diagnostics ;
1819using Microsoft . Extensions . Configuration ;
20+ using Microsoft . Extensions . DependencyInjection ;
1921using OneScript . Execution ;
2022
2123namespace OneScript . Web . Server
@@ -100,6 +102,8 @@ private void ConfigureApp()
100102 options . ListenAnyIP ( Port ) ;
101103 } ) ;
102104
105+ builder . Services . Configure < FormOptions > ( builder . Configuration . GetSection ( "FormOptions" ) ) ;
106+
103107 _app = builder . Build ( ) ;
104108
105109 if ( _useStaticFiles )
You can’t perform that action at this time.
0 commit comments