fixed https middleware in coverstore-server.