Added support for https upstream proxy