Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Don't trim path, since function route already takes it into account
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Sep 11, 2020
1 parent 7669edb commit 7268268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redir/redir/run.csx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Primitives;

public static IActionResult Run(HttpRequest req, ILogger log, string path)
=> new RedirectResult($"https://api.azdo.io/{req.Headers["DISGUISED-HOST"].ToString().Split('.').First()}/{path.Substring(6)}");
=> new RedirectResult($"https://api.azdo.io/{req.Headers["DISGUISED-HOST"].ToString().Split('.').First()}/{path}");

0 comments on commit 7268268

Please sign in to comment.