fix HTTPRequest generation error