UPGRADE: http lib - harden httpSetRequestLogCallback