@wooksjs/http-static 0.4.9 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1388 -1414
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1388 -1414
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4,1426 +4,1400 @@ var eventHttp = require('@wooksjs/event-http');
|
|
|
4
4
|
var fs = require('fs');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
m4u: 'video/vnd.mpegurl',
|
|
1190
|
-
pyv: 'video/vnd.ms-playready.media.pyv',
|
|
1191
|
-
uvu: 'video/vnd.uvvu.mp4',
|
|
1192
|
-
uvvu: 'video/vnd.uvvu.mp4',
|
|
1193
|
-
viv: 'video/vnd.vivo',
|
|
1194
|
-
webm: 'video/webm',
|
|
1195
|
-
f4v: 'video/x-f4v',
|
|
1196
|
-
fli: 'video/x-fli',
|
|
1197
|
-
flv: 'video/x-flv',
|
|
1198
|
-
m4v: 'video/x-m4v',
|
|
1199
|
-
mkv: 'video/x-matroska',
|
|
1200
|
-
mk3d: 'video/x-matroska',
|
|
1201
|
-
mks: 'video/x-matroska',
|
|
1202
|
-
mng: 'video/x-mng',
|
|
1203
|
-
asf: 'video/x-ms-asf',
|
|
1204
|
-
asx: 'video/x-ms-asf',
|
|
1205
|
-
vob: 'video/x-ms-vob',
|
|
1206
|
-
wm: 'video/x-ms-wm',
|
|
1207
|
-
wmv: 'video/x-ms-wmv',
|
|
1208
|
-
wmx: 'video/x-ms-wmx',
|
|
1209
|
-
wvx: 'video/x-ms-wvx',
|
|
1210
|
-
avi: 'video/x-msvideo',
|
|
1211
|
-
movie: 'video/x-sgi-movie',
|
|
1212
|
-
smv: 'video/x-smv',
|
|
1213
|
-
ice: 'x-conference/x-cooltalk',
|
|
7
|
+
const extensions = {
|
|
8
|
+
'123': 'application/vnd.lotus-1-2-3',
|
|
9
|
+
ez: 'application/andrew-inset',
|
|
10
|
+
aw: 'application/applixware',
|
|
11
|
+
atom: 'application/atom+xml',
|
|
12
|
+
atomcat: 'application/atomcat+xml',
|
|
13
|
+
atomdeleted: 'application/atomdeleted+xml',
|
|
14
|
+
atomsvc: 'application/atomsvc+xml',
|
|
15
|
+
dwd: 'application/atsc-dwd+xml',
|
|
16
|
+
held: 'application/atsc-held+xml',
|
|
17
|
+
rsat: 'application/atsc-rsat+xml',
|
|
18
|
+
bdoc: 'application/x-bdoc',
|
|
19
|
+
xcs: 'application/calendar+xml',
|
|
20
|
+
ccxml: 'application/ccxml+xml',
|
|
21
|
+
cdfx: 'application/cdfx+xml',
|
|
22
|
+
cdmia: 'application/cdmi-capability',
|
|
23
|
+
cdmic: 'application/cdmi-container',
|
|
24
|
+
cdmid: 'application/cdmi-domain',
|
|
25
|
+
cdmio: 'application/cdmi-object',
|
|
26
|
+
cdmiq: 'application/cdmi-queue',
|
|
27
|
+
cpl: 'application/cpl+xml',
|
|
28
|
+
cu: 'application/cu-seeme',
|
|
29
|
+
cwl: 'application/cwl',
|
|
30
|
+
mpd: 'application/dash+xml',
|
|
31
|
+
mpp: 'application/vnd.ms-project',
|
|
32
|
+
davmount: 'application/davmount+xml',
|
|
33
|
+
dbk: 'application/docbook+xml',
|
|
34
|
+
dssc: 'application/dssc+der',
|
|
35
|
+
xdssc: 'application/dssc+xml',
|
|
36
|
+
ecma: 'application/ecmascript',
|
|
37
|
+
emma: 'application/emma+xml',
|
|
38
|
+
emotionml: 'application/emotionml+xml',
|
|
39
|
+
epub: 'application/epub+zip',
|
|
40
|
+
exi: 'application/exi',
|
|
41
|
+
exp: 'application/express',
|
|
42
|
+
fdf: 'application/vnd.fdf',
|
|
43
|
+
fdt: 'application/fdt+xml',
|
|
44
|
+
pfr: 'application/font-tdpfr',
|
|
45
|
+
geojson: 'application/geo+json',
|
|
46
|
+
gml: 'application/gml+xml',
|
|
47
|
+
gpx: 'application/gpx+xml',
|
|
48
|
+
gxf: 'application/gxf',
|
|
49
|
+
gz: 'application/gzip',
|
|
50
|
+
hjson: 'application/hjson',
|
|
51
|
+
stk: 'application/hyperstudio',
|
|
52
|
+
ink: 'application/inkml+xml',
|
|
53
|
+
inkml: 'application/inkml+xml',
|
|
54
|
+
ipfix: 'application/ipfix',
|
|
55
|
+
its: 'application/its+xml',
|
|
56
|
+
jar: 'application/java-archive',
|
|
57
|
+
war: 'application/java-archive',
|
|
58
|
+
ear: 'application/java-archive',
|
|
59
|
+
ser: 'application/java-serialized-object',
|
|
60
|
+
class: 'application/java-vm',
|
|
61
|
+
js: 'application/javascript',
|
|
62
|
+
mjs: 'application/javascript',
|
|
63
|
+
json: 'application/json',
|
|
64
|
+
map: 'application/json',
|
|
65
|
+
json5: 'application/json5',
|
|
66
|
+
jsonml: 'application/jsonml+json',
|
|
67
|
+
jsonld: 'application/ld+json',
|
|
68
|
+
lgr: 'application/lgr+xml',
|
|
69
|
+
lostxml: 'application/lost+xml',
|
|
70
|
+
hqx: 'application/mac-binhex40',
|
|
71
|
+
cpt: 'application/mac-compactpro',
|
|
72
|
+
mads: 'application/mads+xml',
|
|
73
|
+
webmanifest: 'application/manifest+json',
|
|
74
|
+
mrc: 'application/marc',
|
|
75
|
+
mrcx: 'application/marcxml+xml',
|
|
76
|
+
ma: 'application/mathematica',
|
|
77
|
+
nb: 'application/mathematica',
|
|
78
|
+
mb: 'application/mathematica',
|
|
79
|
+
mathml: 'application/mathml+xml',
|
|
80
|
+
mbox: 'application/mbox',
|
|
81
|
+
mpf: 'application/media-policy-dataset+xml',
|
|
82
|
+
mscml: 'application/mediaservercontrol+xml',
|
|
83
|
+
metalink: 'application/metalink+xml',
|
|
84
|
+
meta4: 'application/metalink4+xml',
|
|
85
|
+
mets: 'application/mets+xml',
|
|
86
|
+
maei: 'application/mmt-aei+xml',
|
|
87
|
+
musd: 'application/mmt-usd+xml',
|
|
88
|
+
mods: 'application/mods+xml',
|
|
89
|
+
m21: 'application/mp21',
|
|
90
|
+
mp21: 'application/mp21',
|
|
91
|
+
mp4s: 'application/mp4',
|
|
92
|
+
m4p: 'application/mp4',
|
|
93
|
+
doc: 'application/msword',
|
|
94
|
+
dot: 'application/msword',
|
|
95
|
+
mxf: 'application/mxf',
|
|
96
|
+
nq: 'application/n-quads',
|
|
97
|
+
nt: 'application/n-triples',
|
|
98
|
+
cjs: 'application/node',
|
|
99
|
+
bin: 'application/octet-stream',
|
|
100
|
+
dms: 'application/octet-stream',
|
|
101
|
+
lrf: 'application/octet-stream',
|
|
102
|
+
mar: 'application/octet-stream',
|
|
103
|
+
so: 'application/octet-stream',
|
|
104
|
+
dist: 'application/octet-stream',
|
|
105
|
+
distz: 'application/octet-stream',
|
|
106
|
+
pkg: 'application/octet-stream',
|
|
107
|
+
bpk: 'application/octet-stream',
|
|
108
|
+
dump: 'application/octet-stream',
|
|
109
|
+
elc: 'application/octet-stream',
|
|
110
|
+
deploy: 'application/octet-stream',
|
|
111
|
+
exe: 'application/x-msdownload',
|
|
112
|
+
dll: 'application/x-msdownload',
|
|
113
|
+
deb: 'application/x-debian-package',
|
|
114
|
+
dmg: 'application/x-apple-diskimage',
|
|
115
|
+
iso: 'application/x-iso9660-image',
|
|
116
|
+
img: 'application/octet-stream',
|
|
117
|
+
msi: 'application/x-msdownload',
|
|
118
|
+
msp: 'application/octet-stream',
|
|
119
|
+
msm: 'application/octet-stream',
|
|
120
|
+
buffer: 'application/octet-stream',
|
|
121
|
+
oda: 'application/oda',
|
|
122
|
+
opf: 'application/oebps-package+xml',
|
|
123
|
+
ogx: 'application/ogg',
|
|
124
|
+
omdoc: 'application/omdoc+xml',
|
|
125
|
+
onetoc: 'application/onenote',
|
|
126
|
+
onetoc2: 'application/onenote',
|
|
127
|
+
onetmp: 'application/onenote',
|
|
128
|
+
onepkg: 'application/onenote',
|
|
129
|
+
oxps: 'application/oxps',
|
|
130
|
+
relo: 'application/p2p-overlay+xml',
|
|
131
|
+
xer: 'application/patch-ops-error+xml',
|
|
132
|
+
pdf: 'application/pdf',
|
|
133
|
+
pgp: 'application/pgp-encrypted',
|
|
134
|
+
asc: 'application/pgp-signature',
|
|
135
|
+
sig: 'application/pgp-signature',
|
|
136
|
+
prf: 'application/pics-rules',
|
|
137
|
+
p10: 'application/pkcs10',
|
|
138
|
+
p7m: 'application/pkcs7-mime',
|
|
139
|
+
p7c: 'application/pkcs7-mime',
|
|
140
|
+
p7s: 'application/pkcs7-signature',
|
|
141
|
+
p8: 'application/pkcs8',
|
|
142
|
+
ac: 'application/vnd.nokia.n-gage.ac+xml',
|
|
143
|
+
cer: 'application/pkix-cert',
|
|
144
|
+
crl: 'application/pkix-crl',
|
|
145
|
+
pkipath: 'application/pkix-pkipath',
|
|
146
|
+
pki: 'application/pkixcmp',
|
|
147
|
+
pls: 'application/pls+xml',
|
|
148
|
+
ai: 'application/postscript',
|
|
149
|
+
eps: 'application/postscript',
|
|
150
|
+
ps: 'application/postscript',
|
|
151
|
+
provx: 'application/provenance+xml',
|
|
152
|
+
cww: 'application/prs.cww',
|
|
153
|
+
pskcxml: 'application/pskc+xml',
|
|
154
|
+
raml: 'application/raml+yaml',
|
|
155
|
+
rdf: 'application/rdf+xml',
|
|
156
|
+
owl: 'application/rdf+xml',
|
|
157
|
+
rif: 'application/reginfo+xml',
|
|
158
|
+
rnc: 'application/relax-ng-compact-syntax',
|
|
159
|
+
rl: 'application/resource-lists+xml',
|
|
160
|
+
rld: 'application/resource-lists-diff+xml',
|
|
161
|
+
rs: 'application/rls-services+xml',
|
|
162
|
+
rapd: 'application/route-apd+xml',
|
|
163
|
+
sls: 'application/route-s-tsid+xml',
|
|
164
|
+
rusd: 'application/route-usd+xml',
|
|
165
|
+
gbr: 'application/rpki-ghostbusters',
|
|
166
|
+
mft: 'application/rpki-manifest',
|
|
167
|
+
roa: 'application/rpki-roa',
|
|
168
|
+
rsd: 'application/rsd+xml',
|
|
169
|
+
rss: 'application/rss+xml',
|
|
170
|
+
rtf: 'text/rtf',
|
|
171
|
+
sbml: 'application/sbml+xml',
|
|
172
|
+
scq: 'application/scvp-cv-request',
|
|
173
|
+
scs: 'application/scvp-cv-response',
|
|
174
|
+
spq: 'application/scvp-vp-request',
|
|
175
|
+
spp: 'application/scvp-vp-response',
|
|
176
|
+
sdp: 'application/sdp',
|
|
177
|
+
senmlx: 'application/senml+xml',
|
|
178
|
+
sensmlx: 'application/sensml+xml',
|
|
179
|
+
setpay: 'application/set-payment-initiation',
|
|
180
|
+
setreg: 'application/set-registration-initiation',
|
|
181
|
+
shf: 'application/shf+xml',
|
|
182
|
+
siv: 'application/sieve',
|
|
183
|
+
sieve: 'application/sieve',
|
|
184
|
+
smi: 'application/smil+xml',
|
|
185
|
+
smil: 'application/smil+xml',
|
|
186
|
+
rq: 'application/sparql-query',
|
|
187
|
+
srx: 'application/sparql-results+xml',
|
|
188
|
+
gram: 'application/srgs',
|
|
189
|
+
grxml: 'application/srgs+xml',
|
|
190
|
+
sru: 'application/sru+xml',
|
|
191
|
+
ssdl: 'application/ssdl+xml',
|
|
192
|
+
ssml: 'application/ssml+xml',
|
|
193
|
+
swidtag: 'application/swid+xml',
|
|
194
|
+
tei: 'application/tei+xml',
|
|
195
|
+
teicorpus: 'application/tei+xml',
|
|
196
|
+
tfi: 'application/thraud+xml',
|
|
197
|
+
tsd: 'application/timestamped-data',
|
|
198
|
+
toml: 'application/toml',
|
|
199
|
+
trig: 'application/trig',
|
|
200
|
+
ttml: 'application/ttml+xml',
|
|
201
|
+
ubj: 'application/ubjson',
|
|
202
|
+
rsheet: 'application/urc-ressheet+xml',
|
|
203
|
+
td: 'application/urc-targetdesc+xml',
|
|
204
|
+
'1km': 'application/vnd.1000minds.decision-model+xml',
|
|
205
|
+
plb: 'application/vnd.3gpp.pic-bw-large',
|
|
206
|
+
psb: 'application/vnd.3gpp.pic-bw-small',
|
|
207
|
+
pvb: 'application/vnd.3gpp.pic-bw-var',
|
|
208
|
+
tcap: 'application/vnd.3gpp2.tcap',
|
|
209
|
+
pwn: 'application/vnd.3m.post-it-notes',
|
|
210
|
+
aso: 'application/vnd.accpac.simply.aso',
|
|
211
|
+
imp: 'application/vnd.accpac.simply.imp',
|
|
212
|
+
acu: 'application/vnd.acucobol',
|
|
213
|
+
atc: 'application/vnd.acucorp',
|
|
214
|
+
acutc: 'application/vnd.acucorp',
|
|
215
|
+
air: 'application/vnd.adobe.air-application-installer-package+zip',
|
|
216
|
+
fcdt: 'application/vnd.adobe.formscentral.fcdt',
|
|
217
|
+
fxp: 'application/vnd.adobe.fxp',
|
|
218
|
+
fxpl: 'application/vnd.adobe.fxp',
|
|
219
|
+
xdp: 'application/vnd.adobe.xdp+xml',
|
|
220
|
+
xfdf: 'application/xfdf',
|
|
221
|
+
age: 'application/vnd.age',
|
|
222
|
+
ahead: 'application/vnd.ahead.space',
|
|
223
|
+
azf: 'application/vnd.airzip.filesecure.azf',
|
|
224
|
+
azs: 'application/vnd.airzip.filesecure.azs',
|
|
225
|
+
azw: 'application/vnd.amazon.ebook',
|
|
226
|
+
acc: 'application/vnd.americandynamics.acc',
|
|
227
|
+
ami: 'application/vnd.amiga.ami',
|
|
228
|
+
apk: 'application/vnd.android.package-archive',
|
|
229
|
+
cii: 'application/vnd.anser-web-certificate-issue-initiation',
|
|
230
|
+
fti: 'application/vnd.anser-web-funds-transfer-initiation',
|
|
231
|
+
atx: 'application/vnd.antix.game-component',
|
|
232
|
+
mpkg: 'application/vnd.apple.installer+xml',
|
|
233
|
+
key: 'application/x-iwork-keynote-sffkey',
|
|
234
|
+
m3u8: 'application/vnd.apple.mpegurl',
|
|
235
|
+
numbers: 'application/x-iwork-numbers-sffnumbers',
|
|
236
|
+
pages: 'application/x-iwork-pages-sffpages',
|
|
237
|
+
pkpass: 'application/vnd.apple.pkpass',
|
|
238
|
+
swi: 'application/vnd.aristanetworks.swi',
|
|
239
|
+
iota: 'application/vnd.astraea-software.iota',
|
|
240
|
+
aep: 'application/vnd.audiograph',
|
|
241
|
+
bmml: 'application/vnd.balsamiq.bmml+xml',
|
|
242
|
+
mpm: 'application/vnd.blueice.multipass',
|
|
243
|
+
bmi: 'application/vnd.bmi',
|
|
244
|
+
rep: 'application/vnd.businessobjects',
|
|
245
|
+
cdxml: 'application/vnd.chemdraw+xml',
|
|
246
|
+
mmd: 'application/vnd.chipnuts.karaoke-mmd',
|
|
247
|
+
cdy: 'application/vnd.cinderella',
|
|
248
|
+
csl: 'application/vnd.citationstyles.style+xml',
|
|
249
|
+
cla: 'application/vnd.claymore',
|
|
250
|
+
rp9: 'application/vnd.cloanto.rp9',
|
|
251
|
+
c4g: 'application/vnd.clonk.c4group',
|
|
252
|
+
c4d: 'application/vnd.clonk.c4group',
|
|
253
|
+
c4f: 'application/vnd.clonk.c4group',
|
|
254
|
+
c4p: 'application/vnd.clonk.c4group',
|
|
255
|
+
c4u: 'application/vnd.clonk.c4group',
|
|
256
|
+
c11amc: 'application/vnd.cluetrust.cartomobile-config',
|
|
257
|
+
c11amz: 'application/vnd.cluetrust.cartomobile-config-pkg',
|
|
258
|
+
csp: 'application/vnd.commonspace',
|
|
259
|
+
cdbcmsg: 'application/vnd.contact.cmsg',
|
|
260
|
+
cmc: 'application/vnd.cosmocaller',
|
|
261
|
+
clkx: 'application/vnd.crick.clicker',
|
|
262
|
+
clkk: 'application/vnd.crick.clicker.keyboard',
|
|
263
|
+
clkp: 'application/vnd.crick.clicker.palette',
|
|
264
|
+
clkt: 'application/vnd.crick.clicker.template',
|
|
265
|
+
clkw: 'application/vnd.crick.clicker.wordbank',
|
|
266
|
+
wbs: 'application/vnd.criticaltools.wbs+xml',
|
|
267
|
+
pml: 'application/vnd.ctc-posml',
|
|
268
|
+
ppd: 'application/vnd.cups-ppd',
|
|
269
|
+
car: 'application/vnd.curl.car',
|
|
270
|
+
pcurl: 'application/vnd.curl.pcurl',
|
|
271
|
+
dart: 'application/vnd.dart',
|
|
272
|
+
rdz: 'application/vnd.data-vision.rdz',
|
|
273
|
+
dbf: 'application/vnd.dbf',
|
|
274
|
+
uvf: 'application/vnd.dece.data',
|
|
275
|
+
uvvf: 'application/vnd.dece.data',
|
|
276
|
+
uvd: 'application/vnd.dece.data',
|
|
277
|
+
uvvd: 'application/vnd.dece.data',
|
|
278
|
+
uvt: 'application/vnd.dece.ttml+xml',
|
|
279
|
+
uvvt: 'application/vnd.dece.ttml+xml',
|
|
280
|
+
uvx: 'application/vnd.dece.unspecified',
|
|
281
|
+
uvvx: 'application/vnd.dece.unspecified',
|
|
282
|
+
uvz: 'application/vnd.dece.zip',
|
|
283
|
+
uvvz: 'application/vnd.dece.zip',
|
|
284
|
+
fe_launch: 'application/vnd.denovo.fcselayout-link',
|
|
285
|
+
dna: 'application/vnd.dna',
|
|
286
|
+
mlp: 'application/vnd.dolby.mlp',
|
|
287
|
+
dpg: 'application/vnd.dpgraph',
|
|
288
|
+
dfac: 'application/vnd.dreamfactory',
|
|
289
|
+
kpxx: 'application/vnd.ds-keypoint',
|
|
290
|
+
ait: 'application/vnd.dvb.ait',
|
|
291
|
+
svc: 'application/vnd.dvb.service',
|
|
292
|
+
geo: 'application/vnd.dynageo',
|
|
293
|
+
mag: 'application/vnd.ecowin.chart',
|
|
294
|
+
nml: 'application/vnd.enliven',
|
|
295
|
+
esf: 'application/vnd.epson.esf',
|
|
296
|
+
msf: 'application/vnd.epson.msf',
|
|
297
|
+
qam: 'application/vnd.epson.quickanime',
|
|
298
|
+
slt: 'application/vnd.epson.salt',
|
|
299
|
+
ssf: 'application/vnd.epson.ssf',
|
|
300
|
+
es3: 'application/vnd.eszigno3+xml',
|
|
301
|
+
et3: 'application/vnd.eszigno3+xml',
|
|
302
|
+
ez2: 'application/vnd.ezpix-album',
|
|
303
|
+
ez3: 'application/vnd.ezpix-package',
|
|
304
|
+
mseed: 'application/vnd.fdsn.mseed',
|
|
305
|
+
seed: 'application/vnd.fdsn.seed',
|
|
306
|
+
dataless: 'application/vnd.fdsn.seed',
|
|
307
|
+
gph: 'application/vnd.flographit',
|
|
308
|
+
ftc: 'application/vnd.fluxtime.clip',
|
|
309
|
+
fm: 'application/vnd.framemaker',
|
|
310
|
+
frame: 'application/vnd.framemaker',
|
|
311
|
+
maker: 'application/vnd.framemaker',
|
|
312
|
+
book: 'application/vnd.framemaker',
|
|
313
|
+
fnc: 'application/vnd.frogans.fnc',
|
|
314
|
+
ltf: 'application/vnd.frogans.ltf',
|
|
315
|
+
fsc: 'application/vnd.fsc.weblaunch',
|
|
316
|
+
oas: 'application/vnd.fujitsu.oasys',
|
|
317
|
+
oa2: 'application/vnd.fujitsu.oasys2',
|
|
318
|
+
oa3: 'application/vnd.fujitsu.oasys3',
|
|
319
|
+
fg5: 'application/vnd.fujitsu.oasysgp',
|
|
320
|
+
bh2: 'application/vnd.fujitsu.oasysprs',
|
|
321
|
+
ddd: 'application/vnd.fujixerox.ddd',
|
|
322
|
+
xdw: 'application/vnd.fujixerox.docuworks',
|
|
323
|
+
xbd: 'application/vnd.fujixerox.docuworks.binder',
|
|
324
|
+
fzs: 'application/vnd.fuzzysheet',
|
|
325
|
+
txd: 'application/vnd.genomatix.tuxedo',
|
|
326
|
+
ggb: 'application/vnd.geogebra.file',
|
|
327
|
+
ggt: 'application/vnd.geogebra.tool',
|
|
328
|
+
gex: 'application/vnd.geometry-explorer',
|
|
329
|
+
gre: 'application/vnd.geometry-explorer',
|
|
330
|
+
gxt: 'application/vnd.geonext',
|
|
331
|
+
g2w: 'application/vnd.geoplan',
|
|
332
|
+
g3w: 'application/vnd.geospace',
|
|
333
|
+
gmx: 'application/vnd.gmx',
|
|
334
|
+
gdoc: 'application/vnd.google-apps.document',
|
|
335
|
+
gslides: 'application/vnd.google-apps.presentation',
|
|
336
|
+
gsheet: 'application/vnd.google-apps.spreadsheet',
|
|
337
|
+
kml: 'application/vnd.google-earth.kml+xml',
|
|
338
|
+
kmz: 'application/vnd.google-earth.kmz',
|
|
339
|
+
gqf: 'application/vnd.grafeq',
|
|
340
|
+
gqs: 'application/vnd.grafeq',
|
|
341
|
+
gac: 'application/vnd.groove-account',
|
|
342
|
+
ghf: 'application/vnd.groove-help',
|
|
343
|
+
gim: 'application/vnd.groove-identity-message',
|
|
344
|
+
grv: 'application/vnd.groove-injector',
|
|
345
|
+
gtm: 'application/vnd.groove-tool-message',
|
|
346
|
+
tpl: 'application/vnd.groove-tool-template',
|
|
347
|
+
vcg: 'application/vnd.groove-vcard',
|
|
348
|
+
hal: 'application/vnd.hal+xml',
|
|
349
|
+
zmm: 'application/vnd.handheld-entertainment+xml',
|
|
350
|
+
hbci: 'application/vnd.hbci',
|
|
351
|
+
les: 'application/vnd.hhe.lesson-player',
|
|
352
|
+
hpgl: 'application/vnd.hp-hpgl',
|
|
353
|
+
hpid: 'application/vnd.hp-hpid',
|
|
354
|
+
hps: 'application/vnd.hp-hps',
|
|
355
|
+
jlt: 'application/vnd.hp-jlyt',
|
|
356
|
+
pcl: 'application/vnd.hp-pcl',
|
|
357
|
+
pclxl: 'application/vnd.hp-pclxl',
|
|
358
|
+
'sfd-hdstx': 'application/vnd.hydrostatix.sof-data',
|
|
359
|
+
mpy: 'application/vnd.ibm.minipay',
|
|
360
|
+
afp: 'application/vnd.ibm.modcap',
|
|
361
|
+
listafp: 'application/vnd.ibm.modcap',
|
|
362
|
+
list3820: 'application/vnd.ibm.modcap',
|
|
363
|
+
irm: 'application/vnd.ibm.rights-management',
|
|
364
|
+
sc: 'application/vnd.ibm.secure-container',
|
|
365
|
+
icc: 'application/vnd.iccprofile',
|
|
366
|
+
icm: 'application/vnd.iccprofile',
|
|
367
|
+
igl: 'application/vnd.igloader',
|
|
368
|
+
ivp: 'application/vnd.immervision-ivp',
|
|
369
|
+
ivu: 'application/vnd.immervision-ivu',
|
|
370
|
+
igm: 'application/vnd.insors.igm',
|
|
371
|
+
xpw: 'application/vnd.intercon.formnet',
|
|
372
|
+
xpx: 'application/vnd.intercon.formnet',
|
|
373
|
+
i2g: 'application/vnd.intergeo',
|
|
374
|
+
qbo: 'application/vnd.intu.qbo',
|
|
375
|
+
qfx: 'application/vnd.intu.qfx',
|
|
376
|
+
rcprofile: 'application/vnd.ipunplugged.rcprofile',
|
|
377
|
+
irp: 'application/vnd.irepository.package+xml',
|
|
378
|
+
xpr: 'application/vnd.is-xpr',
|
|
379
|
+
fcs: 'application/vnd.isac.fcs',
|
|
380
|
+
jam: 'application/vnd.jam',
|
|
381
|
+
rms: 'application/vnd.jcp.javame.midlet-rms',
|
|
382
|
+
jisp: 'application/vnd.jisp',
|
|
383
|
+
joda: 'application/vnd.joost.joda-archive',
|
|
384
|
+
ktz: 'application/vnd.kahootz',
|
|
385
|
+
ktr: 'application/vnd.kahootz',
|
|
386
|
+
karbon: 'application/vnd.kde.karbon',
|
|
387
|
+
chrt: 'application/vnd.kde.kchart',
|
|
388
|
+
kfo: 'application/vnd.kde.kformula',
|
|
389
|
+
flw: 'application/vnd.kde.kivio',
|
|
390
|
+
kon: 'application/vnd.kde.kontour',
|
|
391
|
+
kpr: 'application/vnd.kde.kpresenter',
|
|
392
|
+
kpt: 'application/vnd.kde.kpresenter',
|
|
393
|
+
ksp: 'application/vnd.kde.kspread',
|
|
394
|
+
kwd: 'application/vnd.kde.kword',
|
|
395
|
+
kwt: 'application/vnd.kde.kword',
|
|
396
|
+
htke: 'application/vnd.kenameaapp',
|
|
397
|
+
kia: 'application/vnd.kidspiration',
|
|
398
|
+
kne: 'application/vnd.kinar',
|
|
399
|
+
knp: 'application/vnd.kinar',
|
|
400
|
+
skp: 'application/vnd.koan',
|
|
401
|
+
skd: 'application/vnd.koan',
|
|
402
|
+
skt: 'application/vnd.koan',
|
|
403
|
+
skm: 'application/vnd.koan',
|
|
404
|
+
sse: 'application/vnd.kodak-descriptor',
|
|
405
|
+
lasxml: 'application/vnd.las.las+xml',
|
|
406
|
+
lbd: 'application/vnd.llamagraphics.life-balance.desktop',
|
|
407
|
+
lbe: 'application/vnd.llamagraphics.life-balance.exchange+xml',
|
|
408
|
+
apr: 'application/vnd.lotus-approach',
|
|
409
|
+
pre: 'application/vnd.lotus-freelance',
|
|
410
|
+
nsf: 'application/vnd.lotus-notes',
|
|
411
|
+
org: 'text/x-org',
|
|
412
|
+
scm: 'application/vnd.lotus-screencam',
|
|
413
|
+
lwp: 'application/vnd.lotus-wordpro',
|
|
414
|
+
portpkg: 'application/vnd.macports.portpkg',
|
|
415
|
+
mvt: 'application/vnd.mapbox-vector-tile',
|
|
416
|
+
mcd: 'application/vnd.mcd',
|
|
417
|
+
mc1: 'application/vnd.medcalcdata',
|
|
418
|
+
cdkey: 'application/vnd.mediastation.cdkey',
|
|
419
|
+
mwf: 'application/vnd.mfer',
|
|
420
|
+
mfm: 'application/vnd.mfmp',
|
|
421
|
+
flo: 'application/vnd.micrografx.flo',
|
|
422
|
+
igx: 'application/vnd.micrografx.igx',
|
|
423
|
+
mif: 'application/vnd.mif',
|
|
424
|
+
daf: 'application/vnd.mobius.daf',
|
|
425
|
+
dis: 'application/vnd.mobius.dis',
|
|
426
|
+
mbk: 'application/vnd.mobius.mbk',
|
|
427
|
+
mqy: 'application/vnd.mobius.mqy',
|
|
428
|
+
msl: 'application/vnd.mobius.msl',
|
|
429
|
+
plc: 'application/vnd.mobius.plc',
|
|
430
|
+
txf: 'application/vnd.mobius.txf',
|
|
431
|
+
mpn: 'application/vnd.mophun.application',
|
|
432
|
+
mpc: 'application/vnd.mophun.certificate',
|
|
433
|
+
xul: 'application/vnd.mozilla.xul+xml',
|
|
434
|
+
cil: 'application/vnd.ms-artgalry',
|
|
435
|
+
cab: 'application/vnd.ms-cab-compressed',
|
|
436
|
+
xls: 'application/vnd.ms-excel',
|
|
437
|
+
xlm: 'application/vnd.ms-excel',
|
|
438
|
+
xla: 'application/vnd.ms-excel',
|
|
439
|
+
xlc: 'application/vnd.ms-excel',
|
|
440
|
+
xlt: 'application/vnd.ms-excel',
|
|
441
|
+
xlw: 'application/vnd.ms-excel',
|
|
442
|
+
xlam: 'application/vnd.ms-excel.addin.macroenabled.12',
|
|
443
|
+
xlsb: 'application/vnd.ms-excel.sheet.binary.macroenabled.12',
|
|
444
|
+
xlsm: 'application/vnd.ms-excel.sheet.macroenabled.12',
|
|
445
|
+
xltm: 'application/vnd.ms-excel.template.macroenabled.12',
|
|
446
|
+
eot: 'application/vnd.ms-fontobject',
|
|
447
|
+
chm: 'application/vnd.ms-htmlhelp',
|
|
448
|
+
ims: 'application/vnd.ms-ims',
|
|
449
|
+
lrm: 'application/vnd.ms-lrm',
|
|
450
|
+
thmx: 'application/vnd.ms-officetheme',
|
|
451
|
+
msg: 'application/vnd.ms-outlook',
|
|
452
|
+
cat: 'application/vnd.ms-pki.seccat',
|
|
453
|
+
stl: 'model/stl',
|
|
454
|
+
ppt: 'application/vnd.ms-powerpoint',
|
|
455
|
+
pps: 'application/vnd.ms-powerpoint',
|
|
456
|
+
pot: 'application/vnd.ms-powerpoint',
|
|
457
|
+
ppam: 'application/vnd.ms-powerpoint.addin.macroenabled.12',
|
|
458
|
+
pptm: 'application/vnd.ms-powerpoint.presentation.macroenabled.12',
|
|
459
|
+
sldm: 'application/vnd.ms-powerpoint.slide.macroenabled.12',
|
|
460
|
+
ppsm: 'application/vnd.ms-powerpoint.slideshow.macroenabled.12',
|
|
461
|
+
potm: 'application/vnd.ms-powerpoint.template.macroenabled.12',
|
|
462
|
+
mpt: 'application/vnd.ms-project',
|
|
463
|
+
docm: 'application/vnd.ms-word.document.macroenabled.12',
|
|
464
|
+
dotm: 'application/vnd.ms-word.template.macroenabled.12',
|
|
465
|
+
wps: 'application/vnd.ms-works',
|
|
466
|
+
wks: 'application/vnd.ms-works',
|
|
467
|
+
wcm: 'application/vnd.ms-works',
|
|
468
|
+
wdb: 'application/vnd.ms-works',
|
|
469
|
+
wpl: 'application/vnd.ms-wpl',
|
|
470
|
+
xps: 'application/vnd.ms-xpsdocument',
|
|
471
|
+
mseq: 'application/vnd.mseq',
|
|
472
|
+
mus: 'application/vnd.musician',
|
|
473
|
+
msty: 'application/vnd.muvee.style',
|
|
474
|
+
taglet: 'application/vnd.mynfc',
|
|
475
|
+
nlu: 'application/vnd.neurolanguage.nlu',
|
|
476
|
+
ntf: 'application/vnd.nitf',
|
|
477
|
+
nitf: 'application/vnd.nitf',
|
|
478
|
+
nnd: 'application/vnd.noblenet-directory',
|
|
479
|
+
nns: 'application/vnd.noblenet-sealer',
|
|
480
|
+
nnw: 'application/vnd.noblenet-web',
|
|
481
|
+
ngdat: 'application/vnd.nokia.n-gage.data',
|
|
482
|
+
'n-gage': 'application/vnd.nokia.n-gage.symbian.install',
|
|
483
|
+
rpst: 'application/vnd.nokia.radio-preset',
|
|
484
|
+
rpss: 'application/vnd.nokia.radio-presets',
|
|
485
|
+
edm: 'application/vnd.novadigm.edm',
|
|
486
|
+
edx: 'application/vnd.novadigm.edx',
|
|
487
|
+
ext: 'application/vnd.novadigm.ext',
|
|
488
|
+
odc: 'application/vnd.oasis.opendocument.chart',
|
|
489
|
+
otc: 'application/vnd.oasis.opendocument.chart-template',
|
|
490
|
+
odb: 'application/vnd.oasis.opendocument.database',
|
|
491
|
+
odf: 'application/vnd.oasis.opendocument.formula',
|
|
492
|
+
odft: 'application/vnd.oasis.opendocument.formula-template',
|
|
493
|
+
odg: 'application/vnd.oasis.opendocument.graphics',
|
|
494
|
+
otg: 'application/vnd.oasis.opendocument.graphics-template',
|
|
495
|
+
odi: 'application/vnd.oasis.opendocument.image',
|
|
496
|
+
oti: 'application/vnd.oasis.opendocument.image-template',
|
|
497
|
+
odp: 'application/vnd.oasis.opendocument.presentation',
|
|
498
|
+
otp: 'application/vnd.oasis.opendocument.presentation-template',
|
|
499
|
+
ods: 'application/vnd.oasis.opendocument.spreadsheet',
|
|
500
|
+
ots: 'application/vnd.oasis.opendocument.spreadsheet-template',
|
|
501
|
+
odt: 'application/vnd.oasis.opendocument.text',
|
|
502
|
+
odm: 'application/vnd.oasis.opendocument.text-master',
|
|
503
|
+
ott: 'application/vnd.oasis.opendocument.text-template',
|
|
504
|
+
oth: 'application/vnd.oasis.opendocument.text-web',
|
|
505
|
+
xo: 'application/vnd.olpc-sugar',
|
|
506
|
+
dd2: 'application/vnd.oma.dd2+xml',
|
|
507
|
+
obgx: 'application/vnd.openblox.game+xml',
|
|
508
|
+
oxt: 'application/vnd.openofficeorg.extension',
|
|
509
|
+
osm: 'application/vnd.openstreetmap.data+xml',
|
|
510
|
+
pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
511
|
+
sldx: 'application/vnd.openxmlformats-officedocument.presentationml.slide',
|
|
512
|
+
ppsx: 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
|
|
513
|
+
potx: 'application/vnd.openxmlformats-officedocument.presentationml.template',
|
|
514
|
+
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
515
|
+
xltx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
|
|
516
|
+
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
517
|
+
dotx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
|
|
518
|
+
mgp: 'application/vnd.osgeo.mapguide.package',
|
|
519
|
+
dp: 'application/vnd.osgi.dp',
|
|
520
|
+
esa: 'application/vnd.osgi.subsystem',
|
|
521
|
+
pdb: 'application/x-pilot',
|
|
522
|
+
pqa: 'application/vnd.palm',
|
|
523
|
+
oprc: 'application/vnd.palm',
|
|
524
|
+
paw: 'application/vnd.pawaafile',
|
|
525
|
+
str: 'application/vnd.pg.format',
|
|
526
|
+
ei6: 'application/vnd.pg.osasli',
|
|
527
|
+
efif: 'application/vnd.picsel',
|
|
528
|
+
wg: 'application/vnd.pmi.widget',
|
|
529
|
+
plf: 'application/vnd.pocketlearn',
|
|
530
|
+
pbd: 'application/vnd.powerbuilder6',
|
|
531
|
+
box: 'application/vnd.previewsystems.box',
|
|
532
|
+
mgz: 'application/vnd.proteus.magazine',
|
|
533
|
+
qps: 'application/vnd.publishare-delta-tree',
|
|
534
|
+
ptid: 'application/vnd.pvi.ptid1',
|
|
535
|
+
qxd: 'application/vnd.quark.quarkxpress',
|
|
536
|
+
qxt: 'application/vnd.quark.quarkxpress',
|
|
537
|
+
qwd: 'application/vnd.quark.quarkxpress',
|
|
538
|
+
qwt: 'application/vnd.quark.quarkxpress',
|
|
539
|
+
qxl: 'application/vnd.quark.quarkxpress',
|
|
540
|
+
qxb: 'application/vnd.quark.quarkxpress',
|
|
541
|
+
rar: 'application/x-rar-compressed',
|
|
542
|
+
bed: 'application/vnd.realvnc.bed',
|
|
543
|
+
mxl: 'application/vnd.recordare.musicxml',
|
|
544
|
+
musicxml: 'application/vnd.recordare.musicxml+xml',
|
|
545
|
+
cryptonote: 'application/vnd.rig.cryptonote',
|
|
546
|
+
cod: 'application/vnd.rim.cod',
|
|
547
|
+
rm: 'application/vnd.rn-realmedia',
|
|
548
|
+
rmvb: 'application/vnd.rn-realmedia-vbr',
|
|
549
|
+
link66: 'application/vnd.route66.link66+xml',
|
|
550
|
+
st: 'application/vnd.sailingtracker.track',
|
|
551
|
+
see: 'application/vnd.seemail',
|
|
552
|
+
sema: 'application/vnd.sema',
|
|
553
|
+
semd: 'application/vnd.semd',
|
|
554
|
+
semf: 'application/vnd.semf',
|
|
555
|
+
ifm: 'application/vnd.shana.informed.formdata',
|
|
556
|
+
itp: 'application/vnd.shana.informed.formtemplate',
|
|
557
|
+
iif: 'application/vnd.shana.informed.interchange',
|
|
558
|
+
ipk: 'application/vnd.shana.informed.package',
|
|
559
|
+
twd: 'application/vnd.simtech-mindmapper',
|
|
560
|
+
twds: 'application/vnd.simtech-mindmapper',
|
|
561
|
+
mmf: 'application/vnd.smaf',
|
|
562
|
+
teacher: 'application/vnd.smart.teacher',
|
|
563
|
+
fo: 'application/vnd.software602.filler.form+xml',
|
|
564
|
+
sdkm: 'application/vnd.solent.sdkm+xml',
|
|
565
|
+
sdkd: 'application/vnd.solent.sdkm+xml',
|
|
566
|
+
dxp: 'application/vnd.spotfire.dxp',
|
|
567
|
+
sfs: 'application/vnd.spotfire.sfs',
|
|
568
|
+
sdc: 'application/vnd.stardivision.calc',
|
|
569
|
+
sda: 'application/vnd.stardivision.draw',
|
|
570
|
+
sdd: 'application/vnd.stardivision.impress',
|
|
571
|
+
smf: 'application/vnd.stardivision.math',
|
|
572
|
+
sdw: 'application/vnd.stardivision.writer',
|
|
573
|
+
vor: 'application/vnd.stardivision.writer',
|
|
574
|
+
sgl: 'application/vnd.stardivision.writer-global',
|
|
575
|
+
smzip: 'application/vnd.stepmania.package',
|
|
576
|
+
sm: 'application/vnd.stepmania.stepchart',
|
|
577
|
+
wadl: 'application/vnd.sun.wadl+xml',
|
|
578
|
+
sxc: 'application/vnd.sun.xml.calc',
|
|
579
|
+
stc: 'application/vnd.sun.xml.calc.template',
|
|
580
|
+
sxd: 'application/vnd.sun.xml.draw',
|
|
581
|
+
std: 'application/vnd.sun.xml.draw.template',
|
|
582
|
+
sxi: 'application/vnd.sun.xml.impress',
|
|
583
|
+
sti: 'application/vnd.sun.xml.impress.template',
|
|
584
|
+
sxm: 'application/vnd.sun.xml.math',
|
|
585
|
+
sxw: 'application/vnd.sun.xml.writer',
|
|
586
|
+
sxg: 'application/vnd.sun.xml.writer.global',
|
|
587
|
+
stw: 'application/vnd.sun.xml.writer.template',
|
|
588
|
+
sus: 'application/vnd.sus-calendar',
|
|
589
|
+
susp: 'application/vnd.sus-calendar',
|
|
590
|
+
svd: 'application/vnd.svd',
|
|
591
|
+
sis: 'application/vnd.symbian.install',
|
|
592
|
+
sisx: 'application/vnd.symbian.install',
|
|
593
|
+
xsm: 'application/vnd.syncml+xml',
|
|
594
|
+
bdm: 'application/vnd.syncml.dm+wbxml',
|
|
595
|
+
xdm: 'application/vnd.syncml.dm+xml',
|
|
596
|
+
ddf: 'application/vnd.syncml.dmddf+xml',
|
|
597
|
+
tao: 'application/vnd.tao.intent-module-archive',
|
|
598
|
+
pcap: 'application/vnd.tcpdump.pcap',
|
|
599
|
+
cap: 'application/vnd.tcpdump.pcap',
|
|
600
|
+
dmp: 'application/vnd.tcpdump.pcap',
|
|
601
|
+
tmo: 'application/vnd.tmobile-livetv',
|
|
602
|
+
tpt: 'application/vnd.trid.tpt',
|
|
603
|
+
mxs: 'application/vnd.triscape.mxs',
|
|
604
|
+
tra: 'application/vnd.trueapp',
|
|
605
|
+
ufd: 'application/vnd.ufdl',
|
|
606
|
+
ufdl: 'application/vnd.ufdl',
|
|
607
|
+
utz: 'application/vnd.uiq.theme',
|
|
608
|
+
umj: 'application/vnd.umajin',
|
|
609
|
+
unityweb: 'application/vnd.unity',
|
|
610
|
+
uoml: 'application/vnd.uoml+xml',
|
|
611
|
+
vcx: 'application/vnd.vcx',
|
|
612
|
+
vsd: 'application/vnd.visio',
|
|
613
|
+
vst: 'application/vnd.visio',
|
|
614
|
+
vss: 'application/vnd.visio',
|
|
615
|
+
vsw: 'application/vnd.visio',
|
|
616
|
+
vis: 'application/vnd.visionary',
|
|
617
|
+
vsf: 'application/vnd.vsf',
|
|
618
|
+
wbxml: 'application/vnd.wap.wbxml',
|
|
619
|
+
wmlc: 'application/vnd.wap.wmlc',
|
|
620
|
+
wmlsc: 'application/vnd.wap.wmlscriptc',
|
|
621
|
+
wtb: 'application/vnd.webturbo',
|
|
622
|
+
nbp: 'application/vnd.wolfram.player',
|
|
623
|
+
wpd: 'application/vnd.wordperfect',
|
|
624
|
+
wqd: 'application/vnd.wqd',
|
|
625
|
+
stf: 'application/vnd.wt.stf',
|
|
626
|
+
xar: 'application/vnd.xara',
|
|
627
|
+
xfdl: 'application/vnd.xfdl',
|
|
628
|
+
hvd: 'application/vnd.yamaha.hv-dic',
|
|
629
|
+
hvs: 'application/vnd.yamaha.hv-script',
|
|
630
|
+
hvp: 'application/vnd.yamaha.hv-voice',
|
|
631
|
+
osf: 'application/vnd.yamaha.openscoreformat',
|
|
632
|
+
osfpvg: 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
|
|
633
|
+
saf: 'application/vnd.yamaha.smaf-audio',
|
|
634
|
+
spf: 'application/vnd.yamaha.smaf-phrase',
|
|
635
|
+
cmp: 'application/vnd.yellowriver-custom-menu',
|
|
636
|
+
zir: 'application/vnd.zul',
|
|
637
|
+
zirz: 'application/vnd.zul',
|
|
638
|
+
zaz: 'application/vnd.zzazz.deck+xml',
|
|
639
|
+
vxml: 'application/voicexml+xml',
|
|
640
|
+
wasm: 'application/wasm',
|
|
641
|
+
wif: 'application/watcherinfo+xml',
|
|
642
|
+
wgt: 'application/widget',
|
|
643
|
+
hlp: 'application/winhlp',
|
|
644
|
+
wsdl: 'application/wsdl+xml',
|
|
645
|
+
wspolicy: 'application/wspolicy+xml',
|
|
646
|
+
'7z': 'application/x-7z-compressed',
|
|
647
|
+
abw: 'application/x-abiword',
|
|
648
|
+
ace: 'application/x-ace-compressed',
|
|
649
|
+
arj: 'application/x-arj',
|
|
650
|
+
aab: 'application/x-authorware-bin',
|
|
651
|
+
x32: 'application/x-authorware-bin',
|
|
652
|
+
u32: 'application/x-authorware-bin',
|
|
653
|
+
vox: 'application/x-authorware-bin',
|
|
654
|
+
aam: 'application/x-authorware-map',
|
|
655
|
+
aas: 'application/x-authorware-seg',
|
|
656
|
+
bcpio: 'application/x-bcpio',
|
|
657
|
+
torrent: 'application/x-bittorrent',
|
|
658
|
+
blb: 'application/x-blorb',
|
|
659
|
+
blorb: 'application/x-blorb',
|
|
660
|
+
bz: 'application/x-bzip',
|
|
661
|
+
bz2: 'application/x-bzip2',
|
|
662
|
+
boz: 'application/x-bzip2',
|
|
663
|
+
cbr: 'application/x-cbr',
|
|
664
|
+
cba: 'application/x-cbr',
|
|
665
|
+
cbt: 'application/x-cbr',
|
|
666
|
+
cbz: 'application/x-cbr',
|
|
667
|
+
cb7: 'application/x-cbr',
|
|
668
|
+
vcd: 'application/x-cdlink',
|
|
669
|
+
cfs: 'application/x-cfs-compressed',
|
|
670
|
+
chat: 'application/x-chat',
|
|
671
|
+
pgn: 'application/x-chess-pgn',
|
|
672
|
+
crx: 'application/x-chrome-extension',
|
|
673
|
+
cco: 'application/x-cocoa',
|
|
674
|
+
nsc: 'application/x-conference',
|
|
675
|
+
cpio: 'application/x-cpio',
|
|
676
|
+
csh: 'application/x-csh',
|
|
677
|
+
udeb: 'application/x-debian-package',
|
|
678
|
+
dgc: 'application/x-dgc-compressed',
|
|
679
|
+
dir: 'application/x-director',
|
|
680
|
+
dcr: 'application/x-director',
|
|
681
|
+
dxr: 'application/x-director',
|
|
682
|
+
cst: 'application/x-director',
|
|
683
|
+
cct: 'application/x-director',
|
|
684
|
+
cxt: 'application/x-director',
|
|
685
|
+
w3d: 'application/x-director',
|
|
686
|
+
fgd: 'application/x-director',
|
|
687
|
+
swa: 'application/x-director',
|
|
688
|
+
wad: 'application/x-doom',
|
|
689
|
+
ncx: 'application/x-dtbncx+xml',
|
|
690
|
+
dtb: 'application/x-dtbook+xml',
|
|
691
|
+
res: 'application/x-dtbresource+xml',
|
|
692
|
+
dvi: 'application/x-dvi',
|
|
693
|
+
evy: 'application/x-envoy',
|
|
694
|
+
eva: 'application/x-eva',
|
|
695
|
+
bdf: 'application/x-font-bdf',
|
|
696
|
+
gsf: 'application/x-font-ghostscript',
|
|
697
|
+
psf: 'application/x-font-linux-psf',
|
|
698
|
+
pcf: 'application/x-font-pcf',
|
|
699
|
+
snf: 'application/x-font-snf',
|
|
700
|
+
pfa: 'application/x-font-type1',
|
|
701
|
+
pfb: 'application/x-font-type1',
|
|
702
|
+
pfm: 'application/x-font-type1',
|
|
703
|
+
afm: 'application/x-font-type1',
|
|
704
|
+
arc: 'application/x-freearc',
|
|
705
|
+
spl: 'application/x-futuresplash',
|
|
706
|
+
gca: 'application/x-gca-compressed',
|
|
707
|
+
ulx: 'application/x-glulx',
|
|
708
|
+
gnumeric: 'application/x-gnumeric',
|
|
709
|
+
gramps: 'application/x-gramps-xml',
|
|
710
|
+
gtar: 'application/x-gtar',
|
|
711
|
+
hdf: 'application/x-hdf',
|
|
712
|
+
php: 'application/x-httpd-php',
|
|
713
|
+
install: 'application/x-install-instructions',
|
|
714
|
+
jardiff: 'application/x-java-archive-diff',
|
|
715
|
+
jnlp: 'application/x-java-jnlp-file',
|
|
716
|
+
kdbx: 'application/x-keepass2',
|
|
717
|
+
latex: 'application/x-latex',
|
|
718
|
+
luac: 'application/x-lua-bytecode',
|
|
719
|
+
lzh: 'application/x-lzh-compressed',
|
|
720
|
+
lha: 'application/x-lzh-compressed',
|
|
721
|
+
run: 'application/x-makeself',
|
|
722
|
+
mie: 'application/x-mie',
|
|
723
|
+
prc: 'model/prc',
|
|
724
|
+
mobi: 'application/x-mobipocket-ebook',
|
|
725
|
+
application: 'application/x-ms-application',
|
|
726
|
+
lnk: 'application/x-ms-shortcut',
|
|
727
|
+
wmd: 'application/x-ms-wmd',
|
|
728
|
+
wmz: 'application/x-msmetafile',
|
|
729
|
+
xbap: 'application/x-ms-xbap',
|
|
730
|
+
mdb: 'application/x-msaccess',
|
|
731
|
+
obd: 'application/x-msbinder',
|
|
732
|
+
crd: 'application/x-mscardfile',
|
|
733
|
+
clp: 'application/x-msclip',
|
|
734
|
+
com: 'application/x-msdownload',
|
|
735
|
+
bat: 'application/x-msdownload',
|
|
736
|
+
mvb: 'application/x-msmediaview',
|
|
737
|
+
m13: 'application/x-msmediaview',
|
|
738
|
+
m14: 'application/x-msmediaview',
|
|
739
|
+
wmf: 'image/wmf',
|
|
740
|
+
emf: 'image/emf',
|
|
741
|
+
emz: 'application/x-msmetafile',
|
|
742
|
+
mny: 'application/x-msmoney',
|
|
743
|
+
pub: 'application/x-mspublisher',
|
|
744
|
+
scd: 'application/x-msschedule',
|
|
745
|
+
trm: 'application/x-msterminal',
|
|
746
|
+
wri: 'application/x-mswrite',
|
|
747
|
+
nc: 'application/x-netcdf',
|
|
748
|
+
cdf: 'application/x-netcdf',
|
|
749
|
+
pac: 'application/x-ns-proxy-autoconfig',
|
|
750
|
+
nzb: 'application/x-nzb',
|
|
751
|
+
pl: 'application/x-perl',
|
|
752
|
+
pm: 'application/x-perl',
|
|
753
|
+
p12: 'application/x-pkcs12',
|
|
754
|
+
pfx: 'application/x-pkcs12',
|
|
755
|
+
p7b: 'application/x-pkcs7-certificates',
|
|
756
|
+
spc: 'application/x-pkcs7-certificates',
|
|
757
|
+
p7r: 'application/x-pkcs7-certreqresp',
|
|
758
|
+
rpm: 'application/x-redhat-package-manager',
|
|
759
|
+
ris: 'application/x-research-info-systems',
|
|
760
|
+
sea: 'application/x-sea',
|
|
761
|
+
sh: 'application/x-sh',
|
|
762
|
+
shar: 'application/x-shar',
|
|
763
|
+
swf: 'application/x-shockwave-flash',
|
|
764
|
+
xap: 'application/x-silverlight-app',
|
|
765
|
+
sql: 'application/x-sql',
|
|
766
|
+
sit: 'application/x-stuffit',
|
|
767
|
+
sitx: 'application/x-stuffitx',
|
|
768
|
+
srt: 'application/x-subrip',
|
|
769
|
+
sv4cpio: 'application/x-sv4cpio',
|
|
770
|
+
sv4crc: 'application/x-sv4crc',
|
|
771
|
+
t3: 'application/x-t3vm-image',
|
|
772
|
+
gam: 'application/x-tads',
|
|
773
|
+
tar: 'application/x-tar',
|
|
774
|
+
tcl: 'application/x-tcl',
|
|
775
|
+
tk: 'application/x-tcl',
|
|
776
|
+
tex: 'application/x-tex',
|
|
777
|
+
tfm: 'application/x-tex-tfm',
|
|
778
|
+
texinfo: 'application/x-texinfo',
|
|
779
|
+
texi: 'application/x-texinfo',
|
|
780
|
+
obj: 'model/obj',
|
|
781
|
+
ustar: 'application/x-ustar',
|
|
782
|
+
hdd: 'application/x-virtualbox-hdd',
|
|
783
|
+
ova: 'application/x-virtualbox-ova',
|
|
784
|
+
ovf: 'application/x-virtualbox-ovf',
|
|
785
|
+
vbox: 'application/x-virtualbox-vbox',
|
|
786
|
+
'vbox-extpack': 'application/x-virtualbox-vbox-extpack',
|
|
787
|
+
vdi: 'application/x-virtualbox-vdi',
|
|
788
|
+
vhd: 'application/x-virtualbox-vhd',
|
|
789
|
+
vmdk: 'application/x-virtualbox-vmdk',
|
|
790
|
+
src: 'application/x-wais-source',
|
|
791
|
+
webapp: 'application/x-web-app-manifest+json',
|
|
792
|
+
der: 'application/x-x509-ca-cert',
|
|
793
|
+
crt: 'application/x-x509-ca-cert',
|
|
794
|
+
pem: 'application/x-x509-ca-cert',
|
|
795
|
+
fig: 'application/x-xfig',
|
|
796
|
+
xlf: 'application/xliff+xml',
|
|
797
|
+
xpi: 'application/x-xpinstall',
|
|
798
|
+
xz: 'application/x-xz',
|
|
799
|
+
z1: 'application/x-zmachine',
|
|
800
|
+
z2: 'application/x-zmachine',
|
|
801
|
+
z3: 'application/x-zmachine',
|
|
802
|
+
z4: 'application/x-zmachine',
|
|
803
|
+
z5: 'application/x-zmachine',
|
|
804
|
+
z6: 'application/x-zmachine',
|
|
805
|
+
z7: 'application/x-zmachine',
|
|
806
|
+
z8: 'application/x-zmachine',
|
|
807
|
+
xaml: 'application/xaml+xml',
|
|
808
|
+
xav: 'application/xcap-att+xml',
|
|
809
|
+
xca: 'application/xcap-caps+xml',
|
|
810
|
+
xdf: 'application/xcap-diff+xml',
|
|
811
|
+
xel: 'application/xcap-el+xml',
|
|
812
|
+
xns: 'application/xcap-ns+xml',
|
|
813
|
+
xenc: 'application/xenc+xml',
|
|
814
|
+
xhtml: 'application/xhtml+xml',
|
|
815
|
+
xht: 'application/xhtml+xml',
|
|
816
|
+
xml: 'text/xml',
|
|
817
|
+
xsl: 'application/xslt+xml',
|
|
818
|
+
xsd: 'application/xml',
|
|
819
|
+
rng: 'application/xml',
|
|
820
|
+
dtd: 'application/xml-dtd',
|
|
821
|
+
xop: 'application/xop+xml',
|
|
822
|
+
xpl: 'application/xproc+xml',
|
|
823
|
+
xslt: 'application/xslt+xml',
|
|
824
|
+
xspf: 'application/xspf+xml',
|
|
825
|
+
mxml: 'application/xv+xml',
|
|
826
|
+
xhvml: 'application/xv+xml',
|
|
827
|
+
xvml: 'application/xv+xml',
|
|
828
|
+
xvm: 'application/xv+xml',
|
|
829
|
+
yang: 'application/yang',
|
|
830
|
+
yin: 'application/yin+xml',
|
|
831
|
+
zip: 'application/zip',
|
|
832
|
+
'3gpp': 'video/3gpp',
|
|
833
|
+
adp: 'audio/adpcm',
|
|
834
|
+
amr: 'audio/amr',
|
|
835
|
+
au: 'audio/basic',
|
|
836
|
+
snd: 'audio/basic',
|
|
837
|
+
mid: 'audio/midi',
|
|
838
|
+
midi: 'audio/midi',
|
|
839
|
+
kar: 'audio/midi',
|
|
840
|
+
rmi: 'audio/midi',
|
|
841
|
+
mxmf: 'audio/mobile-xmf',
|
|
842
|
+
mp3: 'audio/mpeg',
|
|
843
|
+
m4a: 'audio/x-m4a',
|
|
844
|
+
mp4a: 'audio/mp4',
|
|
845
|
+
mpga: 'audio/mpeg',
|
|
846
|
+
mp2: 'audio/mpeg',
|
|
847
|
+
mp2a: 'audio/mpeg',
|
|
848
|
+
m2a: 'audio/mpeg',
|
|
849
|
+
m3a: 'audio/mpeg',
|
|
850
|
+
oga: 'audio/ogg',
|
|
851
|
+
ogg: 'audio/ogg',
|
|
852
|
+
spx: 'audio/ogg',
|
|
853
|
+
opus: 'audio/ogg',
|
|
854
|
+
s3m: 'audio/s3m',
|
|
855
|
+
sil: 'audio/silk',
|
|
856
|
+
uva: 'audio/vnd.dece.audio',
|
|
857
|
+
uvva: 'audio/vnd.dece.audio',
|
|
858
|
+
eol: 'audio/vnd.digital-winds',
|
|
859
|
+
dra: 'audio/vnd.dra',
|
|
860
|
+
dts: 'audio/vnd.dts',
|
|
861
|
+
dtshd: 'audio/vnd.dts.hd',
|
|
862
|
+
lvp: 'audio/vnd.lucent.voice',
|
|
863
|
+
pya: 'audio/vnd.ms-playready.media.pya',
|
|
864
|
+
ecelp4800: 'audio/vnd.nuera.ecelp4800',
|
|
865
|
+
ecelp7470: 'audio/vnd.nuera.ecelp7470',
|
|
866
|
+
ecelp9600: 'audio/vnd.nuera.ecelp9600',
|
|
867
|
+
rip: 'audio/vnd.rip',
|
|
868
|
+
wav: 'audio/x-wav',
|
|
869
|
+
weba: 'audio/webm',
|
|
870
|
+
aac: 'audio/x-aac',
|
|
871
|
+
aif: 'audio/x-aiff',
|
|
872
|
+
aiff: 'audio/x-aiff',
|
|
873
|
+
aifc: 'audio/x-aiff',
|
|
874
|
+
caf: 'audio/x-caf',
|
|
875
|
+
flac: 'audio/x-flac',
|
|
876
|
+
mka: 'audio/x-matroska',
|
|
877
|
+
m3u: 'audio/x-mpegurl',
|
|
878
|
+
wax: 'audio/x-ms-wax',
|
|
879
|
+
wma: 'audio/x-ms-wma',
|
|
880
|
+
ram: 'audio/x-pn-realaudio',
|
|
881
|
+
ra: 'audio/x-realaudio',
|
|
882
|
+
rmp: 'audio/x-pn-realaudio-plugin',
|
|
883
|
+
xm: 'audio/xm',
|
|
884
|
+
cdx: 'chemical/x-cdx',
|
|
885
|
+
cif: 'chemical/x-cif',
|
|
886
|
+
cmdf: 'chemical/x-cmdf',
|
|
887
|
+
cml: 'chemical/x-cml',
|
|
888
|
+
csml: 'chemical/x-csml',
|
|
889
|
+
xyz: 'chemical/x-xyz',
|
|
890
|
+
ttc: 'font/collection',
|
|
891
|
+
otf: 'font/otf',
|
|
892
|
+
ttf: 'font/ttf',
|
|
893
|
+
woff: 'font/woff',
|
|
894
|
+
woff2: 'font/woff2',
|
|
895
|
+
exr: 'image/aces',
|
|
896
|
+
apng: 'image/apng',
|
|
897
|
+
avci: 'image/avci',
|
|
898
|
+
avcs: 'image/avcs',
|
|
899
|
+
avif: 'image/avif',
|
|
900
|
+
bmp: 'image/x-ms-bmp',
|
|
901
|
+
cgm: 'image/cgm',
|
|
902
|
+
drle: 'image/dicom-rle',
|
|
903
|
+
fits: 'image/fits',
|
|
904
|
+
g3: 'image/g3fax',
|
|
905
|
+
gif: 'image/gif',
|
|
906
|
+
heic: 'image/heic',
|
|
907
|
+
heics: 'image/heic-sequence',
|
|
908
|
+
heif: 'image/heif',
|
|
909
|
+
heifs: 'image/heif-sequence',
|
|
910
|
+
hej2: 'image/hej2k',
|
|
911
|
+
hsj2: 'image/hsj2',
|
|
912
|
+
ief: 'image/ief',
|
|
913
|
+
jls: 'image/jls',
|
|
914
|
+
jp2: 'image/jp2',
|
|
915
|
+
jpg2: 'image/jp2',
|
|
916
|
+
jpeg: 'image/jpeg',
|
|
917
|
+
jpg: 'image/jpeg',
|
|
918
|
+
jpe: 'image/jpeg',
|
|
919
|
+
jph: 'image/jph',
|
|
920
|
+
jhc: 'image/jphc',
|
|
921
|
+
jpm: 'video/jpm',
|
|
922
|
+
jpx: 'image/jpx',
|
|
923
|
+
jpf: 'image/jpx',
|
|
924
|
+
jxr: 'image/jxr',
|
|
925
|
+
jxra: 'image/jxra',
|
|
926
|
+
jxrs: 'image/jxrs',
|
|
927
|
+
jxs: 'image/jxs',
|
|
928
|
+
jxsc: 'image/jxsc',
|
|
929
|
+
jxsi: 'image/jxsi',
|
|
930
|
+
jxss: 'image/jxss',
|
|
931
|
+
ktx: 'image/ktx',
|
|
932
|
+
ktx2: 'image/ktx2',
|
|
933
|
+
png: 'image/png',
|
|
934
|
+
btif: 'image/prs.btif',
|
|
935
|
+
pti: 'image/prs.pti',
|
|
936
|
+
sgi: 'image/sgi',
|
|
937
|
+
svg: 'image/svg+xml',
|
|
938
|
+
svgz: 'image/svg+xml',
|
|
939
|
+
t38: 'image/t38',
|
|
940
|
+
tif: 'image/tiff',
|
|
941
|
+
tiff: 'image/tiff',
|
|
942
|
+
tfx: 'image/tiff-fx',
|
|
943
|
+
psd: 'image/vnd.adobe.photoshop',
|
|
944
|
+
azv: 'image/vnd.airzip.accelerator.azv',
|
|
945
|
+
uvi: 'image/vnd.dece.graphic',
|
|
946
|
+
uvvi: 'image/vnd.dece.graphic',
|
|
947
|
+
uvg: 'image/vnd.dece.graphic',
|
|
948
|
+
uvvg: 'image/vnd.dece.graphic',
|
|
949
|
+
djvu: 'image/vnd.djvu',
|
|
950
|
+
djv: 'image/vnd.djvu',
|
|
951
|
+
sub: 'text/vnd.dvb.subtitle',
|
|
952
|
+
dwg: 'image/vnd.dwg',
|
|
953
|
+
dxf: 'image/vnd.dxf',
|
|
954
|
+
fbs: 'image/vnd.fastbidsheet',
|
|
955
|
+
fpx: 'image/vnd.fpx',
|
|
956
|
+
fst: 'image/vnd.fst',
|
|
957
|
+
mmr: 'image/vnd.fujixerox.edmics-mmr',
|
|
958
|
+
rlc: 'image/vnd.fujixerox.edmics-rlc',
|
|
959
|
+
ico: 'image/x-icon',
|
|
960
|
+
dds: 'image/vnd.ms-dds',
|
|
961
|
+
mdi: 'image/vnd.ms-modi',
|
|
962
|
+
wdp: 'image/vnd.ms-photo',
|
|
963
|
+
npx: 'image/vnd.net-fpx',
|
|
964
|
+
b16: 'image/vnd.pco.b16',
|
|
965
|
+
tap: 'image/vnd.tencent.tap',
|
|
966
|
+
vtf: 'image/vnd.valve.source.texture',
|
|
967
|
+
wbmp: 'image/vnd.wap.wbmp',
|
|
968
|
+
xif: 'image/vnd.xiff',
|
|
969
|
+
pcx: 'image/x-pcx',
|
|
970
|
+
webp: 'image/webp',
|
|
971
|
+
'3ds': 'image/x-3ds',
|
|
972
|
+
ras: 'image/x-cmu-raster',
|
|
973
|
+
cmx: 'image/x-cmx',
|
|
974
|
+
fh: 'image/x-freehand',
|
|
975
|
+
fhc: 'image/x-freehand',
|
|
976
|
+
fh4: 'image/x-freehand',
|
|
977
|
+
fh5: 'image/x-freehand',
|
|
978
|
+
fh7: 'image/x-freehand',
|
|
979
|
+
jng: 'image/x-jng',
|
|
980
|
+
sid: 'image/x-mrsid-image',
|
|
981
|
+
pic: 'image/x-pict',
|
|
982
|
+
pct: 'image/x-pict',
|
|
983
|
+
pnm: 'image/x-portable-anymap',
|
|
984
|
+
pbm: 'image/x-portable-bitmap',
|
|
985
|
+
pgm: 'image/x-portable-graymap',
|
|
986
|
+
ppm: 'image/x-portable-pixmap',
|
|
987
|
+
rgb: 'image/x-rgb',
|
|
988
|
+
tga: 'image/x-tga',
|
|
989
|
+
xbm: 'image/x-xbitmap',
|
|
990
|
+
xpm: 'image/x-xpixmap',
|
|
991
|
+
xwd: 'image/x-xwindowdump',
|
|
992
|
+
'disposition-notification': 'message/disposition-notification',
|
|
993
|
+
u8msg: 'message/global',
|
|
994
|
+
u8dsn: 'message/global-delivery-status',
|
|
995
|
+
u8mdn: 'message/global-disposition-notification',
|
|
996
|
+
u8hdr: 'message/global-headers',
|
|
997
|
+
eml: 'message/rfc822',
|
|
998
|
+
mime: 'message/rfc822',
|
|
999
|
+
wsc: 'message/vnd.wfa.wsc',
|
|
1000
|
+
'3mf': 'model/3mf',
|
|
1001
|
+
gltf: 'model/gltf+json',
|
|
1002
|
+
glb: 'model/gltf-binary',
|
|
1003
|
+
igs: 'model/iges',
|
|
1004
|
+
iges: 'model/iges',
|
|
1005
|
+
msh: 'model/mesh',
|
|
1006
|
+
mesh: 'model/mesh',
|
|
1007
|
+
silo: 'model/mesh',
|
|
1008
|
+
mtl: 'model/mtl',
|
|
1009
|
+
stpx: 'model/step+xml',
|
|
1010
|
+
stpz: 'model/step+zip',
|
|
1011
|
+
stpxz: 'model/step-xml+zip',
|
|
1012
|
+
u3d: 'model/u3d',
|
|
1013
|
+
dae: 'model/vnd.collada+xml',
|
|
1014
|
+
dwf: 'model/vnd.dwf',
|
|
1015
|
+
gdl: 'model/vnd.gdl',
|
|
1016
|
+
gtw: 'model/vnd.gtw',
|
|
1017
|
+
mts: 'model/vnd.mts',
|
|
1018
|
+
ogex: 'model/vnd.opengex',
|
|
1019
|
+
x_b: 'model/vnd.parasolid.transmit.binary',
|
|
1020
|
+
x_t: 'model/vnd.parasolid.transmit.text',
|
|
1021
|
+
vds: 'model/vnd.sap.vds',
|
|
1022
|
+
usdz: 'model/vnd.usdz+zip',
|
|
1023
|
+
bsp: 'model/vnd.valve.source.compiled-map',
|
|
1024
|
+
vtu: 'model/vnd.vtu',
|
|
1025
|
+
wrl: 'model/vrml',
|
|
1026
|
+
vrml: 'model/vrml',
|
|
1027
|
+
x3db: 'model/x3d+fastinfoset',
|
|
1028
|
+
x3dbz: 'model/x3d+binary',
|
|
1029
|
+
x3dv: 'model/x3d-vrml',
|
|
1030
|
+
x3dvz: 'model/x3d+vrml',
|
|
1031
|
+
x3d: 'model/x3d+xml',
|
|
1032
|
+
x3dz: 'model/x3d+xml',
|
|
1033
|
+
appcache: 'text/cache-manifest',
|
|
1034
|
+
manifest: 'text/cache-manifest',
|
|
1035
|
+
ics: 'text/calendar',
|
|
1036
|
+
ifb: 'text/calendar',
|
|
1037
|
+
coffee: 'text/coffeescript',
|
|
1038
|
+
litcoffee: 'text/coffeescript',
|
|
1039
|
+
css: 'text/css',
|
|
1040
|
+
csv: 'text/csv',
|
|
1041
|
+
html: 'text/html',
|
|
1042
|
+
htm: 'text/html',
|
|
1043
|
+
shtml: 'text/html',
|
|
1044
|
+
jade: 'text/jade',
|
|
1045
|
+
jsx: 'text/jsx',
|
|
1046
|
+
less: 'text/less',
|
|
1047
|
+
markdown: 'text/markdown',
|
|
1048
|
+
md: 'text/markdown',
|
|
1049
|
+
mml: 'text/mathml',
|
|
1050
|
+
mdx: 'text/mdx',
|
|
1051
|
+
n3: 'text/n3',
|
|
1052
|
+
txt: 'text/plain',
|
|
1053
|
+
text: 'text/plain',
|
|
1054
|
+
conf: 'text/plain',
|
|
1055
|
+
def: 'text/plain',
|
|
1056
|
+
list: 'text/plain',
|
|
1057
|
+
log: 'text/plain',
|
|
1058
|
+
in: 'text/plain',
|
|
1059
|
+
ini: 'text/plain',
|
|
1060
|
+
dsc: 'text/prs.lines.tag',
|
|
1061
|
+
rtx: 'text/richtext',
|
|
1062
|
+
sgml: 'text/sgml',
|
|
1063
|
+
sgm: 'text/sgml',
|
|
1064
|
+
shex: 'text/shex',
|
|
1065
|
+
slim: 'text/slim',
|
|
1066
|
+
slm: 'text/slim',
|
|
1067
|
+
spdx: 'text/spdx',
|
|
1068
|
+
stylus: 'text/stylus',
|
|
1069
|
+
styl: 'text/stylus',
|
|
1070
|
+
tsv: 'text/tab-separated-values',
|
|
1071
|
+
t: 'text/troff',
|
|
1072
|
+
tr: 'text/troff',
|
|
1073
|
+
roff: 'text/troff',
|
|
1074
|
+
man: 'text/troff',
|
|
1075
|
+
me: 'text/troff',
|
|
1076
|
+
ms: 'text/troff',
|
|
1077
|
+
ttl: 'text/turtle',
|
|
1078
|
+
uri: 'text/uri-list',
|
|
1079
|
+
uris: 'text/uri-list',
|
|
1080
|
+
urls: 'text/uri-list',
|
|
1081
|
+
vcard: 'text/vcard',
|
|
1082
|
+
curl: 'text/vnd.curl',
|
|
1083
|
+
dcurl: 'text/vnd.curl.dcurl',
|
|
1084
|
+
mcurl: 'text/vnd.curl.mcurl',
|
|
1085
|
+
scurl: 'text/vnd.curl.scurl',
|
|
1086
|
+
ged: 'text/vnd.familysearch.gedcom',
|
|
1087
|
+
fly: 'text/vnd.fly',
|
|
1088
|
+
flx: 'text/vnd.fmi.flexstor',
|
|
1089
|
+
gv: 'text/vnd.graphviz',
|
|
1090
|
+
'3dml': 'text/vnd.in3d.3dml',
|
|
1091
|
+
spot: 'text/vnd.in3d.spot',
|
|
1092
|
+
jad: 'text/vnd.sun.j2me.app-descriptor',
|
|
1093
|
+
wml: 'text/vnd.wap.wml',
|
|
1094
|
+
wmls: 'text/vnd.wap.wmlscript',
|
|
1095
|
+
vtt: 'text/vtt',
|
|
1096
|
+
s: 'text/x-asm',
|
|
1097
|
+
asm: 'text/x-asm',
|
|
1098
|
+
c: 'text/x-c',
|
|
1099
|
+
cc: 'text/x-c',
|
|
1100
|
+
cxx: 'text/x-c',
|
|
1101
|
+
cpp: 'text/x-c',
|
|
1102
|
+
h: 'text/x-c',
|
|
1103
|
+
hh: 'text/x-c',
|
|
1104
|
+
dic: 'text/x-c',
|
|
1105
|
+
htc: 'text/x-component',
|
|
1106
|
+
f: 'text/x-fortran',
|
|
1107
|
+
for: 'text/x-fortran',
|
|
1108
|
+
f77: 'text/x-fortran',
|
|
1109
|
+
f90: 'text/x-fortran',
|
|
1110
|
+
hbs: 'text/x-handlebars-template',
|
|
1111
|
+
java: 'text/x-java-source',
|
|
1112
|
+
lua: 'text/x-lua',
|
|
1113
|
+
mkd: 'text/x-markdown',
|
|
1114
|
+
nfo: 'text/x-nfo',
|
|
1115
|
+
opml: 'text/x-opml',
|
|
1116
|
+
p: 'text/x-pascal',
|
|
1117
|
+
pas: 'text/x-pascal',
|
|
1118
|
+
pde: 'text/x-processing',
|
|
1119
|
+
sass: 'text/x-sass',
|
|
1120
|
+
scss: 'text/x-scss',
|
|
1121
|
+
etx: 'text/x-setext',
|
|
1122
|
+
sfv: 'text/x-sfv',
|
|
1123
|
+
ymp: 'text/x-suse-ymp',
|
|
1124
|
+
uu: 'text/x-uuencode',
|
|
1125
|
+
vcs: 'text/x-vcalendar',
|
|
1126
|
+
vcf: 'text/x-vcard',
|
|
1127
|
+
yaml: 'text/yaml',
|
|
1128
|
+
yml: 'text/yaml',
|
|
1129
|
+
'3gp': 'video/3gpp',
|
|
1130
|
+
'3g2': 'video/3gpp2',
|
|
1131
|
+
h261: 'video/h261',
|
|
1132
|
+
h263: 'video/h263',
|
|
1133
|
+
h264: 'video/h264',
|
|
1134
|
+
m4s: 'video/iso.segment',
|
|
1135
|
+
jpgv: 'video/jpeg',
|
|
1136
|
+
jpgm: 'video/jpm',
|
|
1137
|
+
mj2: 'video/mj2',
|
|
1138
|
+
mjp2: 'video/mj2',
|
|
1139
|
+
ts: 'video/mp2t',
|
|
1140
|
+
mp4: 'video/mp4',
|
|
1141
|
+
mp4v: 'video/mp4',
|
|
1142
|
+
mpg4: 'video/mp4',
|
|
1143
|
+
mpeg: 'video/mpeg',
|
|
1144
|
+
mpg: 'video/mpeg',
|
|
1145
|
+
mpe: 'video/mpeg',
|
|
1146
|
+
m1v: 'video/mpeg',
|
|
1147
|
+
m2v: 'video/mpeg',
|
|
1148
|
+
ogv: 'video/ogg',
|
|
1149
|
+
qt: 'video/quicktime',
|
|
1150
|
+
mov: 'video/quicktime',
|
|
1151
|
+
uvh: 'video/vnd.dece.hd',
|
|
1152
|
+
uvvh: 'video/vnd.dece.hd',
|
|
1153
|
+
uvm: 'video/vnd.dece.mobile',
|
|
1154
|
+
uvvm: 'video/vnd.dece.mobile',
|
|
1155
|
+
uvp: 'video/vnd.dece.pd',
|
|
1156
|
+
uvvp: 'video/vnd.dece.pd',
|
|
1157
|
+
uvs: 'video/vnd.dece.sd',
|
|
1158
|
+
uvvs: 'video/vnd.dece.sd',
|
|
1159
|
+
uvv: 'video/vnd.dece.video',
|
|
1160
|
+
uvvv: 'video/vnd.dece.video',
|
|
1161
|
+
dvb: 'video/vnd.dvb.file',
|
|
1162
|
+
fvt: 'video/vnd.fvt',
|
|
1163
|
+
mxu: 'video/vnd.mpegurl',
|
|
1164
|
+
m4u: 'video/vnd.mpegurl',
|
|
1165
|
+
pyv: 'video/vnd.ms-playready.media.pyv',
|
|
1166
|
+
uvu: 'video/vnd.uvvu.mp4',
|
|
1167
|
+
uvvu: 'video/vnd.uvvu.mp4',
|
|
1168
|
+
viv: 'video/vnd.vivo',
|
|
1169
|
+
webm: 'video/webm',
|
|
1170
|
+
f4v: 'video/x-f4v',
|
|
1171
|
+
fli: 'video/x-fli',
|
|
1172
|
+
flv: 'video/x-flv',
|
|
1173
|
+
m4v: 'video/x-m4v',
|
|
1174
|
+
mkv: 'video/x-matroska',
|
|
1175
|
+
mk3d: 'video/x-matroska',
|
|
1176
|
+
mks: 'video/x-matroska',
|
|
1177
|
+
mng: 'video/x-mng',
|
|
1178
|
+
asf: 'video/x-ms-asf',
|
|
1179
|
+
asx: 'video/x-ms-asf',
|
|
1180
|
+
vob: 'video/x-ms-vob',
|
|
1181
|
+
wm: 'video/x-ms-wm',
|
|
1182
|
+
wmv: 'video/x-ms-wmv',
|
|
1183
|
+
wmx: 'video/x-ms-wmx',
|
|
1184
|
+
wvx: 'video/x-ms-wvx',
|
|
1185
|
+
avi: 'video/x-msvideo',
|
|
1186
|
+
movie: 'video/x-sgi-movie',
|
|
1187
|
+
smv: 'video/x-smv',
|
|
1188
|
+
ice: 'x-conference/x-cooltalk',
|
|
1214
1189
|
};
|
|
1215
1190
|
|
|
1216
|
-
function getMimeType(path, fallback = null) {
|
|
1217
|
-
const ext = (/\.([^.]+)$/.exec(path) || [])[1] || path;
|
|
1218
|
-
return extensions[ext] || fallback;
|
|
1191
|
+
function getMimeType(path, fallback = null) {
|
|
1192
|
+
const ext = (/\.([^.]+)$/.exec(path) || [])[1] || path;
|
|
1193
|
+
return extensions[ext] || fallback;
|
|
1219
1194
|
}
|
|
1220
1195
|
|
|
1221
|
-
function normalizePath(filePath, baseDir) {
|
|
1222
|
-
return path.normalize(path.join(filePath.startsWith('/') || (baseDir && baseDir.startsWith('/')) ? '' : process.cwd(), baseDir || '', filePath));
|
|
1196
|
+
function normalizePath(filePath, baseDir) {
|
|
1197
|
+
return path.normalize(path.join(filePath.startsWith('/') || (baseDir && baseDir.startsWith('/')) ? '' : process.cwd(), baseDir || '', filePath));
|
|
1223
1198
|
}
|
|
1224
1199
|
|
|
1225
|
-
const { stat, readdir } = fs.promises;
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
if (
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
}
|
|
1337
|
-
// range
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
//
|
|
1353
|
-
// }
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
// If-
|
|
1364
|
-
//
|
|
1365
|
-
//
|
|
1366
|
-
//
|
|
1367
|
-
//
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
//
|
|
1373
|
-
//
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
});
|
|
1200
|
+
const { stat, readdir } = fs.promises;
|
|
1201
|
+
async function serveFile(filePath, options = {}) {
|
|
1202
|
+
if (!options.allowDotDot && (/\/\.\.\//.test(filePath) || /^\.\.\//.test(filePath))) {
|
|
1203
|
+
throw new Error('Parent Traversal ("/../") is not allowed.');
|
|
1204
|
+
}
|
|
1205
|
+
const { restoreCtx } = eventHttp.useHttpContext();
|
|
1206
|
+
const { status } = eventHttp.useResponse();
|
|
1207
|
+
const { setHeader, removeHeader } = eventHttp.useSetHeaders();
|
|
1208
|
+
const headers = eventHttp.useHeaders();
|
|
1209
|
+
const { method, url } = eventHttp.useRequest();
|
|
1210
|
+
const { setCacheControl, setExpires, setPragmaNoCache } = eventHttp.useSetCacheControl();
|
|
1211
|
+
const normalizedPath = normalizePath(filePath, options.baseDir);
|
|
1212
|
+
let fileStats;
|
|
1213
|
+
try {
|
|
1214
|
+
fileStats = await stat(normalizedPath);
|
|
1215
|
+
}
|
|
1216
|
+
catch (e) {
|
|
1217
|
+
if (options.defaultExt) {
|
|
1218
|
+
const ext = path.extname(filePath);
|
|
1219
|
+
if (!ext) {
|
|
1220
|
+
restoreCtx();
|
|
1221
|
+
return serveFile(filePath + '.' + options.defaultExt);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
throw new eventHttp.HttpError(404);
|
|
1225
|
+
}
|
|
1226
|
+
status(200);
|
|
1227
|
+
// if-none-match & if-modified-since processing start
|
|
1228
|
+
// rfc7232
|
|
1229
|
+
const etag = `"${[
|
|
1230
|
+
fileStats.ino,
|
|
1231
|
+
fileStats.size,
|
|
1232
|
+
fileStats.mtime.toISOString(),
|
|
1233
|
+
].join('-')}"`;
|
|
1234
|
+
const lastModified = new Date(fileStats.mtime);
|
|
1235
|
+
if (isNotModified(etag, lastModified, headers['if-none-match'] || '', headers['if-modified-since'] || '')) {
|
|
1236
|
+
status(304);
|
|
1237
|
+
return '';
|
|
1238
|
+
}
|
|
1239
|
+
// if-none-match & if-modified-since processing end
|
|
1240
|
+
setHeader('etag', etag);
|
|
1241
|
+
setHeader('last-modified', lastModified.toUTCString());
|
|
1242
|
+
if (options.cacheControl !== undefined) {
|
|
1243
|
+
setCacheControl(options.cacheControl);
|
|
1244
|
+
}
|
|
1245
|
+
if (options.expires) {
|
|
1246
|
+
setExpires(options.expires);
|
|
1247
|
+
}
|
|
1248
|
+
if (options.pragmaNoCache) {
|
|
1249
|
+
setPragmaNoCache(options.pragmaNoCache);
|
|
1250
|
+
}
|
|
1251
|
+
if (fileStats.isDirectory()) {
|
|
1252
|
+
if (options.listDirectory) {
|
|
1253
|
+
restoreCtx();
|
|
1254
|
+
return listDirectory(normalizedPath);
|
|
1255
|
+
}
|
|
1256
|
+
else if (options.index) {
|
|
1257
|
+
if (filePath[filePath.length - 1] !== '/' &&
|
|
1258
|
+
url &&
|
|
1259
|
+
url[url.length - 1] !== '/') {
|
|
1260
|
+
return new eventHttp.BaseHttpResponse()
|
|
1261
|
+
.setStatus(302)
|
|
1262
|
+
.setHeader('location', url + '/');
|
|
1263
|
+
}
|
|
1264
|
+
restoreCtx();
|
|
1265
|
+
return serveFile(path.join(filePath, options.index), {
|
|
1266
|
+
...options,
|
|
1267
|
+
index: '',
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
removeHeader('etag');
|
|
1271
|
+
removeHeader('last-modified');
|
|
1272
|
+
throw new eventHttp.HttpError(404);
|
|
1273
|
+
}
|
|
1274
|
+
// range header processing start
|
|
1275
|
+
let range = headers.range;
|
|
1276
|
+
let start, end;
|
|
1277
|
+
let size = fileStats.size;
|
|
1278
|
+
if (range) {
|
|
1279
|
+
const rangeParts = range
|
|
1280
|
+
.trim()
|
|
1281
|
+
.replace(/bytes=/, '')
|
|
1282
|
+
.split('-');
|
|
1283
|
+
const [s, e] = rangeParts;
|
|
1284
|
+
start = parseInt(s);
|
|
1285
|
+
end = e ? parseInt(e) : size - 1;
|
|
1286
|
+
end = Math.min(size - 1, end);
|
|
1287
|
+
if (start > end || isNaN(start) || isNaN(end)) {
|
|
1288
|
+
throw new eventHttp.HttpError(416);
|
|
1289
|
+
}
|
|
1290
|
+
size = end - start + 1;
|
|
1291
|
+
// if-range processing start
|
|
1292
|
+
// rfc7233#section-3.2\
|
|
1293
|
+
const ifRange = headers['if-range'] || '';
|
|
1294
|
+
const ifRangeTag = ifRange[0] === '"' ? ifRange : '';
|
|
1295
|
+
const ifRangeDate = ifRangeTag ? '' : ifRange;
|
|
1296
|
+
if (ifRange &&
|
|
1297
|
+
!isNotModified(etag, lastModified, ifRangeTag, ifRangeDate)) {
|
|
1298
|
+
// If the validator does not match, the server MUST ignore
|
|
1299
|
+
// the Range header field.
|
|
1300
|
+
status(200);
|
|
1301
|
+
size = fileStats.size;
|
|
1302
|
+
range = '';
|
|
1303
|
+
}
|
|
1304
|
+
else {
|
|
1305
|
+
// If the validator given in the If-Range header field matches the
|
|
1306
|
+
// current validator for the selected representation of the target
|
|
1307
|
+
// resource, then the server SHOULD process the Range header field as
|
|
1308
|
+
// requested.
|
|
1309
|
+
setHeader('content-range', `bytes ${start}-${end}/${fileStats.size}`);
|
|
1310
|
+
status(206);
|
|
1311
|
+
}
|
|
1312
|
+
// if-range processing end
|
|
1313
|
+
}
|
|
1314
|
+
// range header processing end
|
|
1315
|
+
setHeader('accept-ranges', 'bytes');
|
|
1316
|
+
setHeader('content-type', getMimeType(normalizedPath) || 'application/octet-stream');
|
|
1317
|
+
setHeader('content-length', size);
|
|
1318
|
+
if (options.headers) {
|
|
1319
|
+
for (const header of Object.keys(options.headers)) {
|
|
1320
|
+
setHeader(header, options.headers[header]);
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
return method === 'HEAD'
|
|
1324
|
+
? ''
|
|
1325
|
+
: fs.createReadStream(normalizedPath, !!range ? { start, end } : undefined);
|
|
1326
|
+
}
|
|
1327
|
+
// function toWeak(etag: string): string {
|
|
1328
|
+
// return `W/${etag}`
|
|
1329
|
+
// }
|
|
1330
|
+
function isNotModified(etag, lastModified, clientEtag, clientLM) {
|
|
1331
|
+
if (clientEtag) {
|
|
1332
|
+
const parts = clientEtag.split(',').map((v) => v.trim());
|
|
1333
|
+
for (const p of parts) {
|
|
1334
|
+
if (etag === p) {
|
|
1335
|
+
return true;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
// A recipient MUST ignore If-Modified-Since if the request contains an
|
|
1339
|
+
// If-None-Match header field; the condition in If-None-Match is
|
|
1340
|
+
// considered to be a more accurate replacement for the condition in
|
|
1341
|
+
// If-Modified-Since, and the two are only combined for the sake of
|
|
1342
|
+
// interoperating with older intermediaries that might not implement
|
|
1343
|
+
// If-None-Match.
|
|
1344
|
+
return false;
|
|
1345
|
+
}
|
|
1346
|
+
const date = new Date(clientLM);
|
|
1347
|
+
// A recipient MUST ignore the If-Modified-Since header field if the
|
|
1348
|
+
// received field-value is not a valid HTTP-date, or if the request
|
|
1349
|
+
// method is neither GET nor HEAD.
|
|
1350
|
+
if (date.toString() !== 'Invalid Date' &&
|
|
1351
|
+
date.getTime() > lastModified.getTime()) {
|
|
1352
|
+
return true;
|
|
1353
|
+
}
|
|
1354
|
+
return false;
|
|
1355
|
+
}
|
|
1356
|
+
async function listDirectory(dirPath) {
|
|
1357
|
+
const { setContentType } = eventHttp.useSetHeaders();
|
|
1358
|
+
const { url } = eventHttp.useRequest();
|
|
1359
|
+
const list = await readdir(dirPath);
|
|
1360
|
+
const promises = [];
|
|
1361
|
+
let detailedList = [];
|
|
1362
|
+
for (const item of list) {
|
|
1363
|
+
promises.push({ name: item, promise: stat(path.join(dirPath, item)) });
|
|
1364
|
+
}
|
|
1365
|
+
for (const item of promises) {
|
|
1366
|
+
const data = await item.promise;
|
|
1367
|
+
detailedList.push({
|
|
1368
|
+
name: item.name,
|
|
1369
|
+
size: data.size,
|
|
1370
|
+
mtime: data.mtime,
|
|
1371
|
+
dir: data.isDirectory(),
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1374
|
+
detailedList = detailedList.sort((a, b) => a.dir === b.dir ? (a.name > b.name ? 1 : -1) : a.dir > b.dir ? -1 : 1);
|
|
1375
|
+
detailedList.unshift({ name: '..', dir: true });
|
|
1376
|
+
setContentType('text/html');
|
|
1377
|
+
const styles = '<style type="text/css">\nhtml { font-family: monospace }\n' +
|
|
1378
|
+
'span { padding: 0px 2px }\n' +
|
|
1379
|
+
'.text { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }\n' +
|
|
1380
|
+
'.icon { width: 20px; display: inline-block; text-align: center; }\n' +
|
|
1381
|
+
'.name { width: 250px; display: inline-block; }\n' +
|
|
1382
|
+
'.size { width: 80px; display: inline-block; color: grey; text-align: right; }\n' +
|
|
1383
|
+
'.date { width: 200px; display: inline-block; color: grey; text-align: right; }\n' +
|
|
1384
|
+
'\n</style>';
|
|
1385
|
+
return ('<html><head><title>Dir</title> ' +
|
|
1386
|
+
styles +
|
|
1387
|
+
' </head><body><ul>' +
|
|
1388
|
+
detailedList
|
|
1389
|
+
.map((d) => `<li> <span class="icon">${d.dir ? '📁' : '🗎'}</span>` +
|
|
1390
|
+
`<a href="${path.join(url || '', d.name)}"><span class="name text">${d.name}</span></a>` +
|
|
1391
|
+
`<span class="size text">${(d.size &&
|
|
1392
|
+
(d.size > 10000
|
|
1393
|
+
? Math.round(d.size / 1024 / 1024).toString() +
|
|
1394
|
+
'Mb'
|
|
1395
|
+
: Math.round(d.size / 1024).toString() +
|
|
1396
|
+
'Kb')) ||
|
|
1397
|
+
''}</span>` +
|
|
1398
|
+
`<span class="date text">${(d.mtime && d.mtime.toISOString()) || ''}</li>`)
|
|
1399
|
+
.join('\n') +
|
|
1400
|
+
'</ul></body></html>');
|
|
1427
1401
|
}
|
|
1428
1402
|
|
|
1429
1403
|
exports.serveFile = serveFile;
|