You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by mh...@apache.org on 2020/11/17 16:07:55 UTC
[openwhisk-apigateway] branch master updated: Allow trailing
non-alphanumeric character in path params (#386)
This is an automated email from the ASF dual-hosted git repository.
mhamann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-apigateway.git
The following commit(s) were added to refs/heads/master by this push:
new 112cd1f Allow trailing non-alphanumeric character in path params (#386)
112cd1f is described below
commit 112cd1ffc09973528e73f866b7fd2ff6a7807aea
Author: DavidMGreen <gr...@us.ibm.com>
AuthorDate: Tue Nov 17 11:07:47 2020 -0500
Allow trailing non-alphanumeric character in path params (#386)
Updating parsing for $gatewayPath in allow for trailing non-alphanumeric characters in path parameters.
---
conf.d/managed_endpoints.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/conf.d/managed_endpoints.conf b/conf.d/managed_endpoints.conf
index cf601ba..1954ffb 100644
--- a/conf.d/managed_endpoints.conf
+++ b/conf.d/managed_endpoints.conf
@@ -57,7 +57,7 @@ server {
';
}
- location ~ "^/api/([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-\/\.\_\{\} ]+)(\\b)" {
+ location ~ "^/api/([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-\/\.\_\{\} ]*[a-zA-Z0-9\-\/\.\_\{\}])" {
set $upstream https://172.17.0.1;
set $tenant $1;
set $tenantNamespace '';