set http to correct value.