Making it only check Content-Length if the header is present