Support returning https url's when request itself is made in https