|
@@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Hosting;
|
|
|
using Microsoft.AspNetCore.Http.Features;
|
|
|
using Microsoft.AspNetCore.HttpsPolicy;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
+using Microsoft.AspNetCore.StaticFiles;
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
using Microsoft.Extensions.Hosting;
|
|
@@ -64,8 +65,11 @@ namespace LJProxy
|
|
|
});
|
|
|
|
|
|
app.UseDefaultFiles();
|
|
|
+ var provider = new FileExtensionContentTypeProvider();
|
|
|
+ provider.Mappings[".apk"] = "application/vnd.android.package-archive";
|
|
|
app.UseStaticFiles(new StaticFileOptions {
|
|
|
FileProvider = new L1SvrFileProvider(env.ContentRootPath,app.ApplicationServices.GetService<LJClientPoolService>()),
|
|
|
+ ContentTypeProvider = provider
|
|
|
});
|
|
|
}
|
|
|
}
|