handle incomplete header
handle errors in openssl #10
fix invalid header handle #10