From b1846b842ce6d8fc10d29baa196a332d6a863a64 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 14 Aug 2018 10:13:40 -0500 Subject: [PATCH] Add a non-capturing subgroup so that the function regex will match async functions as well. Signed-off-by: Thomas E Lackey --- gateway/handlers/forwarding_proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/handlers/forwarding_proxy.go b/gateway/handlers/forwarding_proxy.go index 334e98f8..83cca058 100644 --- a/gateway/handlers/forwarding_proxy.go +++ b/gateway/handlers/forwarding_proxy.go @@ -17,7 +17,7 @@ import ( ) // Parse out the service name (group 1) and rest of path (group 2). -var functionMatcher = regexp.MustCompile("^/?function/([^/?]+)([^?]*)") +var functionMatcher = regexp.MustCompile("^/?(?:async-)?function/([^/?]+)([^?]*)") // HTTPNotifier notify about HTTP request/response type HTTPNotifier interface {