HM: Support for more than 4096 *2 bytes
JPM: fix for request without Content-Lenght header