Browse Source

Merge pull request #23818 from abpframework/AbpEmbeddedFileProvider-patch

Normalize 'client_proxies' to 'client-proxies' in file paths
pull/23820/head
Mansur Besleney 11 months ago
committed by GitHub
parent
commit
fe8e2723da
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      framework/src/Volo.Abp.VirtualFileSystem/Volo/Abp/VirtualFileSystem/Embedded/AbpEmbeddedFileProvider.cs

2
framework/src/Volo.Abp.VirtualFileSystem/Volo/Abp/VirtualFileSystem/Embedded/AbpEmbeddedFileProvider.cs

@ -47,6 +47,8 @@ public class AbpEmbeddedFileProvider : DictionaryBasedFileProvider
var fullPath = ConvertToRelativePath(resourcePath).EnsureStartsWith('/');
fullPath = fullPath.Replace("client_proxies", "client-proxies");
if (fullPath.Contains("/"))
{
AddDirectoriesRecursively(files, fullPath.Substring(0, fullPath.LastIndexOf('/')), lastModificationTime);

Loading…
Cancel
Save