making the  proxy with digest work

missed some local change previously, change is to compute basic authentication only in case of proxy is of basic auth