Fixed https -> https proxying

Referenced in Issue #409