Updated head file, fixed redirection bug with HTTP / HTTPS protocol.