Only truncate '/function/...' paths.

Signed-off-by: Thomas E Lackey <telackey@bozemanpass.com>
This commit is contained in:
Thomas E Lackey
2018-08-13 23:34:51 -05:00
committed by Alex Ellis
parent decf9addb3
commit 8749e0d891
2 changed files with 18 additions and 5 deletions

View File

@ -74,7 +74,7 @@ func main() {
functionURLResolver = urlResolver
}
urlTransformer := handlers.PathTruncatingURLPathTransformer{}
urlTransformer := handlers.FunctionPathTruncatingURLPathTransformer{}
var functionURLTransformer handlers.URLPathTransformer
if config.PassURLPathsToFunctions {