nghttpx: Rewrite header handling