fix: wrong scheme possible when follow redirect