corrected logic for assembling the value of the httpProxyVar