+ if (session.getMethod() == Method.POST || session.getMethod() == Method.PUT) {
+ Map<String, String> parameters = new HashMap<String, String>();
+ try {
+ session.parseBody(parameters);
+ } catch (Exception e) {
+ //we do not care about the content
+ //we only parse the body to prevent errors, see
+ // https://github.com/NanoHttpd/nanohttpd/issues/356
+ }
+ }
+