handle default port calculation on redirection response