Make urlHasVarsFromMessage consistent with getMessageType

This commit is contained in:
Manfred Touron
2017-05-19 20:10:20 +02:00
parent 31a84ee58f
commit 09adcbdcd9
3 changed files with 8 additions and 7 deletions

View File

@@ -338,7 +338,7 @@ func httpVerb(m *descriptor.MethodDescriptorProto) string {
}
}
func urlHasVarsFromMessage(path string, d *descriptor.DescriptorProto) bool {
func urlHasVarsFromMessage(path string, d *ggdescriptor.Message) bool {
for _, field := range d.Field {
if !isFieldMessage(field) {
if strings.Contains(path, fmt.Sprintf("{%s}", *field.Name)) {