We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e80e7a commit a4a4edfCopy full SHA for a4a4edf
1 file changed
core/src/main/java/com/predic8/membrane/core/resolver/RuleResolver.java
@@ -94,10 +94,11 @@ public InputStream resolve(String urlString) {
94
}
95
96
97
- private static @NotNull String getPathAndQuery(URI uri) {
98
- if (uri.getQuery().isEmpty())
+ private static @NotNull String getPathAndQuery(URI uri) {
+ String query = uri.getQuery();
99
+ if (query == null || query.isEmpty())
100
return uri.getPath();
- return uri.getPath() + "?" + uri.getQuery();
101
+ return uri.getPath() + "?" + query;
102
103
104
protected static String getRuleName(String url) {
0 commit comments