Skip to content

Commit 8682955

Browse files
Merge pull request #95 from SixLabors/js/fix-94
Correctly Parse Azure Container Paths.
2 parents 45d071b + 53fa622 commit 8682955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp.Web.Providers.Azure/Providers/AzureBlobStorageImageProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public async Task<IImageResolver> GetAsync(HttpContext context)
8989
// the same prefix are not mixed up.
9090
string path = context.Request.Path.Value.TrimStart(SlashChars);
9191
int index = path.IndexOfAny(SlashChars);
92-
string nameToMatch = index != -1 ? path.Substring(index) : path;
92+
string nameToMatch = index != -1 ? path.Substring(0, index) : path;
9393

9494
foreach (string key in this.containers.Keys)
9595
{

0 commit comments

Comments
 (0)