modified DefaultServlet parameter on invoke templates

call response with post=0 (if post empty) simulating previous behavior.

(template servlets typically test for post==null,
found one more Crawler.p.java were empty post caused problem,
= defaults not correctly set)
pull/1/head
reger 11 years ago
parent cabe0943cd
commit e2ccb6ce9d

@ -763,7 +763,12 @@ public class YaCyDefaultServlet extends HttpServlet {
// eof modification to read attribute // eof modification to read attribute
Object tmp; Object tmp;
try { try {
if (args.isEmpty()) {
// yacy servlets typically test for args != null (but not for args .isEmpty())
tmp = invokeServlet(targetClass, legacyRequestHeader, null);
} else {
tmp = invokeServlet(targetClass, legacyRequestHeader, args); tmp = invokeServlet(targetClass, legacyRequestHeader, args);
}
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
ConcurrentLog.logException(e); ConcurrentLog.logException(e);
throw new ServletException(); throw new ServletException();

Loading…
Cancel
Save