request_parser: fix bug passing a temporary string to regex_match()