public static byte[] readEntirelyAsByte(AtmosphereResource r) throws IOException { boolean readGetBody = r.getAtmosphereConfig().getInitParameter(ApplicationConfig.READ_GET_BODY, false); if (!readGetBody && AtmosphereResourceImpl.class.cast(r).getRequest(false).getMethod().equalsIgnoreCase("GET")) { logger.debug("Blocking an I/O read operation from a GET request. To enable GET + body, set {} to true", ApplicationConfig.READ_GET_BODY); return new byte[0]; } return forceReadEntirelyAsByte(r); }
bytes = IOUtils.forceReadEntirelyAsByte(r); } catch (IOException e) { logger.warn("", e);