fix proxy
Merge pull request #810 from dotcloud/proxy-fix

fix regression on proxy