sending basic only if proxy is of basic auth
Merge pull request #199 from vedil/master

making the  proxy with digest work