fix maxRedirects type, fixes #9