#488 improved prepend_base to use https when the request is also https. updated todo.