static void fillPost(Env env, ArrayValue postArray, ArrayValue files, QuercusHttpServletRequest request, bool addSlashesToValues, bool isAllowUploads) { InputStream @is = null; try { string encoding = request.getCharacterEncoding(); string contentType = request.getHeader("Content-Type"); @is = request.getInputStream(); fillPost(env, postArray, files, @is, contentType, encoding, Integer.MAX_VALUE, addSlashesToValues, isAllowUploads); if (postArray.getSize() == 0) { // needs to be last or else this function will consume the inputstream putRequestMap(env, postArray, files, request, addSlashesToValues, isAllowUploads); } } catch (IOException e) { env.warning(e); } finally { try { if (@is != null) { @is.close(); } } catch (IOException e) { } } }