File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
gapic/templates/%namespace/%name_%version/%sub/services/%service Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 149149 {% if not method .client_streaming %}
150150 {% for routing_param in method .routing_rule .routing_parameters %}
151151 {% if routing_param .path_template %} {# Need to match. #}
152-
153- routing_param_regex = {{ routing_param.to_regex() }}
154- regex_match = routing_param_regex.match(request.{{ routing_param.field }})
152+ if getattr( {{ name }}, 'routing_param_regex', None) is None:
153+ {{ name }}. routing_param_regex = {{ routing_param.to_regex() }}
154+ regex_match = {{name}}. routing_param_regex.match(request.{{ routing_param.field }})
155155 if regex_match and regex_match.group("{{ routing_param.key }}"):
156156 header_params["{{ routing_param.key }}"] = regex_match.group("{{ routing_param.key }}")
157157
You can’t perform that action at this time.
0 commit comments