This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-2.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.20.x by this push:
new 2e00c69 CAMEL-11979: camel-undertow - swagger api should match on uri
prefix
2e00c69 is described below
commit 2e00c696dd17dd5ec6b473e9ad9373961ed0b1fb
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Nov 1 20:04:51 2017 +0100
CAMEL-11979: camel-undertow - swagger api should match on uri prefix
---
.../java/org/apache/camel/component/undertow/UndertowComponent.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java
index 052c300..8fa093e 100644
---
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java
+++
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java
@@ -228,7 +228,7 @@ public class UndertowComponent extends DefaultComponent
implements RestConsumerF
String url;
if (api) {
- url = "undertow:%s://%s:%s/%s?httpMethodRestrict=%s";
+ url =
"undertow:%s://%s:%s/%s?matchOnUriPrefix=true&httpMethodRestrict=%s";
} else {
url =
"undertow:%s://%s:%s/%s?matchOnUriPrefix=false&httpMethodRestrict=%s";
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].