making sure httpHeaders handles buffers