You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/07/02 15:10:34 UTC
[camel] branch main updated: ResourceHelper.hasScheme() now
recognizes "https:" scheme (#5783)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new b01df0d ResourceHelper.hasScheme() now recognizes "https:" scheme (#5783)
b01df0d is described below
commit b01df0db2f2592cc0da059a071804896599805b2
Author: Paul Galbraith <pa...@gmail.com>
AuthorDate: Fri Jul 2 11:10:09 2021 -0400
ResourceHelper.hasScheme() now recognizes "https:" scheme (#5783)
Co-authored-by: Paul Galbraith <pa...@chargelab.co>
---
.../src/main/java/org/apache/camel/support/ResourceHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/camel-support/src/main/java/org/apache/camel/support/ResourceHelper.java b/core/camel-support/src/main/java/org/apache/camel/support/ResourceHelper.java
index 11d549d..551f6a0 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/ResourceHelper.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/ResourceHelper.java
@@ -70,7 +70,7 @@ public final class ResourceHelper {
return false;
}
- return uri.startsWith("file:") || uri.startsWith("classpath:") || uri.startsWith("http:");
+ return uri.startsWith("file:") || uri.startsWith("classpath:") || uri.startsWith("http:") || uri.startsWith("https:");
}
/**