fix https://gist.github.com/benoitf/e34a92116c0f5f6bcc59 with increase max header size up to 64K