fix new_request function for mochiweb