update canon middleware with redirect from http to https