Fixed #770: Empty redirect in response may cause uninitialized string offset notice
merge 7adaababe691bac62a5afded4cf419566d02acd6 to b225dd603dc07b9e4acc9412fbc0049fe72b3df8 (from 0.11)