check_http: timeout problem on http redirection case

Just turning attached patch of github issue #826 into a push request