Skip to content

Commit

Permalink
Merge pull request #95 from SixLabors/js/fix-94
Browse files Browse the repository at this point in the history
Correctly Parse Azure Container Paths.
  • Loading branch information
JimBobSquarePants authored May 7, 2020
2 parents 45d071b + 53fa622 commit 8682955
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public async Task<IImageResolver> GetAsync(HttpContext context)
// the same prefix are not mixed up.
string path = context.Request.Path.Value.TrimStart(SlashChars);
int index = path.IndexOfAny(SlashChars);
string nameToMatch = index != -1 ? path.Substring(index) : path;
string nameToMatch = index != -1 ? path.Substring(0, index) : path;

foreach (string key in this.containers.Keys)
{
Expand Down

0 comments on commit 8682955

Please sign in to comment.