fixed https server handler