fixed compatibility with httpagentparser 1.5.1