Improved: SeoContextFilter.java is not able to handle query strings
Removes a trailing blank and uses empty to check request::getParameterMap result
Thanks: Mathieu to spot "empty to check request::getParameterMap result"
@@ -101,7 +101,7 @@ public class SeoContextFilter implements Filter {
String uri = httpRequest.getRequestURI();
Map<String, String[]> parameterMap =request.getParameterMap();
- if (parameterMap != null) {
+ if (!parameterMap.isEmpty()) {
List<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();
request.getParameterMap().forEach((name, values) -> {
for(String value : values) {
