Fix host error in websRedirect for Windows.

In visual studio,  x ? : y will cause building fail although it's concise in linux.