fixes rest [https, http_basic_authentication]