Closed aloksharma1 closed 2 years ago
I have no idea what a embedded file header is, but if you make a pull request with a unit test and a fix i would be happy to merge it and release a new version!
here embedded file is same as just your other files on system, its just embedded in assembly that's it. I am checking it further, if I get a resolution i will post it here, since you are targeting multiple framework its a bit hard to add these embedded project and test it (i will need to put code instructions for both frameworks to make it work) so it will take some time.
i found the issue, i will make a PR by tomorrow. i dont think this need a unit test as this only need an additional option to supply virtual paths in that case program will simply switch this line
if (contentTypeProvider.TryGetContentType(staticFileResponseContext.File.PhysicalPath.Remove(
staticFileResponseContext.File.PhysicalPath.Length - fileExtension.Length, fileExtension.Length), out var contentType))
this is where null error is happening.
ok, i have made the PR let me know when its nuget ready :)
Hello, when i am using the compressed middleware i am getting this issue on trying to access embedded files related to #34
as i checked the middleware doesn't handle the embedded file headers correctly, hence pass it on to next one so is the problem with this issue. Is there any way to provide it