1
- using System ;
2
1
using ColoryrServer . DllManager ;
3
2
using ColoryrServer . FileSystem ;
4
3
using ColoryrServer . Http ;
5
4
using ColoryrServer . SDK ;
6
- using ColoryrServer . Utils ;
7
5
using HttpMultipartParser ;
8
6
using Lib . App ;
9
7
using Lib . Build ;
10
8
using Lib . Build . Object ;
11
9
using Lib . Server ;
12
10
using Microsoft . AspNetCore . Connections ;
13
11
using Microsoft . Extensions . Primitives ;
14
- using Newtonsoft . Json ;
15
12
using Newtonsoft . Json . Linq ;
16
- using System . Collections . Concurrent ;
17
- using System . Collections . Generic ;
18
13
using System . Collections . Specialized ;
19
- using System . Diagnostics ;
20
- using System . IO ;
21
- using System . Linq ;
22
- using System . Net . Http ;
23
14
using System . Security . Cryptography . X509Certificates ;
24
15
using System . Text ;
25
- using System . Threading ;
26
- using System . Threading . Tasks ;
27
- using Microsoft . AspNetCore . Builder ;
28
- using Microsoft . AspNetCore . Hosting ;
29
- using Microsoft . AspNetCore . Http ;
30
- using Microsoft . AspNetCore . Routing ;
31
- using Microsoft . Extensions . DependencyInjection ;
32
- using Microsoft . Extensions . Logging ;
33
16
using HttpRequest = Microsoft . AspNetCore . Http . HttpRequest ;
34
17
using HttpResponse = Microsoft . AspNetCore . Http . HttpResponse ;
35
18
@@ -495,7 +478,7 @@ private static async Task GetStatic(HttpContext context)
495
478
if ( a != - 1 )
496
479
{
497
480
string type = name [ a ..] ;
498
- if ( Config . Requset . StreamType . Contains ( type ) )
481
+ if ( Config . Requset . StreamType . Contains ( type ) )
499
482
{
500
483
NameValueCollection collection = new ( ) ;
501
484
foreach ( var item in Request . Headers )
@@ -521,7 +504,7 @@ private static async Task GetStatic(HttpContext context)
521
504
if ( stream == null )
522
505
{
523
506
Response . StatusCode = 500 ;
524
- await Response . WriteAsync ( "stream in null" , Encoding . UTF8 ) ;
507
+ await Response . WriteAsync ( "stream in null" , Encoding . UTF8 ) ;
525
508
}
526
509
else
527
510
{
0 commit comments