in reply to Re: IO::Socket::SSL HTTPS Headers
in thread IO::Socket::SSL HTTPS Headers

Actually, when I provided the full response headers it worked properly. It added them into the headers already provided, rather than later in the document.